{
  "slug": "full-page-write",
  "term": "Full-page write",
  "aliases": [
    "full_page_writes"
  ],
  "definition": "A PostgreSQL full-page write records a recoverable page image in WAL to support recovery from an incomplete data-page write.",
  "note": "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. [pg-settings]\n\nFull-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. [pg-image-code]\n\nImage counts are not distinct-page counts. The tagged XLogSaveBufferForHint path permits concurrent backends to record the same block more than once. [pg-image-code]",
  "status": "shipping",
  "advantages": [
    {
      "text": "Supports reconstruction of a page interrupted during writeback.",
      "citationIds": [
        "pg-settings"
      ]
    }
  ],
  "limitations": [
    {
      "text": "Adds WAL traffic; it is not a substitute for an independently recoverable backup.",
      "citationIds": [
        "pg-settings",
        "pg-archive"
      ]
    }
  ],
  "related": [
    "write-ahead-log",
    "database-checkpoint",
    "torn-write",
    "doublewrite-buffer",
    "hint-bit",
    "wal-compression",
    "fuzzy-checkpoint"
  ],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "citations": [
    {
      "id": "pg-settings",
      "title": "PostgreSQL 18: WAL settings",
      "url": "https://www.postgresql.org/docs/18/runtime-config-wal.html",
      "accessed": "2026-10-16"
    },
    {
      "id": "pg-archive",
      "title": "PostgreSQL 18: Continuous Archiving and Point-in-Time Recovery",
      "url": "https://www.postgresql.org/docs/18/continuous-archiving.html",
      "accessed": "2026-10-11"
    },
    {
      "id": "hesela-wal",
      "title": "WAL, checkpoints and torn pages: three different recovery guarantees",
      "url": "https://hesela.com/analyses/wal-checkpoints-torn-pages/",
      "accessed": "2026-10-11"
    },
    {
      "id": "pg-image-code",
      "title": "PostgreSQL REL_18_0: xloginsert.c, page holes and XLogCompressBackupBlock",
      "url": "https://github.com/postgres/postgres/blob/REL_18_0/src/backend/access/transam/xloginsert.c",
      "accessed": "2026-10-17"
    }
  ],
  "updated": "2026-10-17",
  "provenance": [
    "PostgreSQL-specific page recovery; the code reference is pinned to REL_18_0."
  ]
}
