database-checkpoint · shipping · also WAL checkpoint

Database checkpoint

A database checkpoint records engine-defined recovery state to bound or reduce the work needed after a crash.

Related Observatory article: Read on hesela.com

PostgreSQL recovery uses the redo position associated with a checkpoint. SQLite checkpointing transfers committed page content from WAL to the main database file, and readers can delay completion. These mechanisms are not identical, and a checkpoint does not create an independent backup. ARIES fuzzy checkpoints record recovery metadata without requiring dirty-page writes during the checkpoint. In our controlled WAL experiment, PASSIVE returned busy=0 while backfill was incomplete; ending the read transaction allowed completion without closing its connection. [6]

Relations

related
Write-ahead log, Full-page write, Crash consistency, Fuzzy checkpoint, Rollback journal, SQLite super-journal, Checkpoint starvation, SQLite WAL end mark, ZFS Intent Log, Hybrid log, Concurrent prefix recovery

Advantages

  • Can reduce the amount of log replay required after a crash. [1]

Limitations

  • More frequent PostgreSQL checkpoints can increase data-page flushing and full-page-image WAL traffic. [1]

Citations

  1. PostgreSQL 18: WAL Configuration (accessed 2026-10-11)
  2. Hesela: SQLite WAL checkpoint starvation observations (accessed 2026-10-14)

Further reading

  1. PostgreSQL 18: Continuous Archiving and Point-in-Time Recovery (accessed 2026-10-11)
  2. SQLite: Write-Ahead Logging (unversioned documentation) (accessed 2026-10-11)
  3. WAL, checkpoints and torn pages: three different recovery guarantees (accessed 2026-10-11)
  4. Mohan et al. ARIES. ACM TODS 17(1), 1992, pp. 121-122, section 5.4. (accessed 2026-10-12)

JSON: /data/terms/database-checkpoint.json

Published by Hesela team · Updated

Report a correction · Editorial standards · Reuse guidance

Cite this page
Hesela team. Database checkpoint. Hesela. 2026-11-14. https://hesela.dev/terms/database-checkpoint/