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
Citations
- PostgreSQL 18: WAL settings
- PostgreSQL 18: Continuous Archiving and Point-in-Time Recovery
- PostgreSQL REL_18_0: xloginsert.c, page holes and XLogCompressBackupBlock
Further reading
Sources & caveats
- PostgreSQL-specific page recovery; the code reference is pinned to REL_18_0.