Database Checkpoints and Recovery Start Positions
Record enough active transaction and page state to narrow crash recovery without requiring all work to stop together.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
A checkpoint summarizes a moving system
A quiet checkpoint can pause work and flush a defined state, simplifying recovery at the cost of disruption. A fuzzy checkpoint can record metadata about active transactions and dirty pages while normal execution continues. Its summary is tied to specific log positions and must be interpreted together with subsequent records. A checkpoint marker alone does not imply every modified page is already durable.
Dirty pages may require records preceding the checkpoint
If a dirty page has not been written since a much earlier change, recovering it can require starting redo before the checkpoint position. Track an earliest relevant update position for that page or equivalent information. Recovery reconstructs what must be replayed and which transactions were incomplete. Log positions track applied updates. Redo and undo describe the work performed after analysis.[1][2]