Skip to content- Sources: primary
- Summary: Umair Shahid found about 39% of a SaaS team's 1.8 TB of daily WAL was full-page-image overhead, driven by checkpoints every five minutes on hot tables and indexes. He checks it with wal_fpi in pg_stat_wal, pg_waldump --stats, and the ratio of timed to requested checkpoints, and recommends raising checkpoint_timeout to 15 to 30 minutes with a larger max_wal_size, sized to the recovery time objective. Fillfactor and autovacuum tuning plus writing only changed columns had already cut daily WAL about 11%, to 1.6 TB, and the checkpoint change was projected to cut roughly another 25%.
- Why it matters: Before scaling disks or replicas for WAL volume, measure full-page images, since checkpoint spacing trades WAL size against crash recovery time.
- Background: With full_page_writes on, PostgreSQL logs the whole 8 kB page the first time it changes after a checkpoint, so a crash mid-write cannot leave a torn page. Every checkpoint resets that first-change state, so frequent checkpoints on frequently touched pages multiply page copies in WAL. HOT updates, which need free space on the page, avoid index writes and reduce WAL further.