full-page-write · shipping · also full_page_writes

Full-page write

A PostgreSQL full-page write records a recoverable page image in WAL to support recovery from an incomplete data-page write.

With full_page_writes enabled, PostgreSQL normally logs a page image on its first modification after a checkpoint. The image supplies reconstruction material beyond ordinary change records. [1]

Full-page refers to recoverability, not a fixed WAL byte count. The REL_18_0 builder can omit unused space and compress the image. This does not make the original data-file write atomic. [4]

Image counts are not distinct-page counts. The tagged XLogSaveBufferForHint path permits concurrent backends to record the same block more than once. [4]

Relations

related
Write-ahead log, Database checkpoint, Torn write, Doublewrite buffer, Hint bit, WAL compression, Fuzzy checkpoint

Advantages

  • Supports reconstruction of a page interrupted during writeback. [1]

Limitations

  • Adds WAL traffic; it is not a substitute for an independently recoverable backup. [1, 2]

Citations

  1. PostgreSQL 18: WAL settings (accessed 2026-10-16)
  2. PostgreSQL 18: Continuous Archiving and Point-in-Time Recovery (accessed 2026-10-11)
  3. PostgreSQL REL_18_0: xloginsert.c, page holes and XLogCompressBackupBlock (accessed 2026-10-17)

Further reading

  1. WAL, checkpoints and torn pages: three different recovery guarantees (accessed 2026-10-11)
Sources & caveats
  • PostgreSQL-specific page recovery; the code reference is pinned to REL_18_0.

JSON: /data/terms/full-page-write.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Full-page write. Hesela. 2026-10-17. https://hesela.dev/terms/full-page-write/