The Five-year Patch mission: To boldly fail where no patch has failed before
summary
Postgres gains an online enable/disable for data checksums that handles WAL replay, checkpointing and standby safety, plus a new synchronization primitive and extensive tests. The patch adds online enable/disable of data checksums, implements prox signal barriers to synchronize all backends, introduces injection points and background psql testing to hit rare race windows, and forces restart points into WAL redo so replay uses WAL state. It evolves from ~1,700 to ~5,100 lines, takes 256 million seconds to finish, and lands committed but not yet GA.
AI-written summary · about
chapters (15)
- 0:00Introduction and background
- 1:07Data checksums primer
- 3:14Origin of the patch idea
- 4:59Initial patch attempt
- 7:02Patch reverted and issues found
- 8:04Synchronization challenges
- 9:52Prox signal barriers solution
- 11:40Disabling checksums safely
- 13:43Replication and standby issues
- 14:46Replay and crash recovery
- 17:33Testing complexities
- 19:18Injection points for testing
- 20:22Project management struggles
- 22:28Final patch and next steps
- 24:18Was it worth it?
