Case Study: Understanding the importance of Commitlog through a database corruption
summary
Post-upgrade vacuum fails because Postgres cannot find transaction status files in pg_xact, leaving tuple visibility unknown on an insert-only 116 GB table; amcheck finds 6.1 million rows with XIDs older than the freeze horizon (DB age ~1.1 billion) and about 4.1M rows with unknown commit status. Recovery uses page_inspect to read headers and pg_surgery to heap_freeze or mark tuples killed; partial fix succeeds because data is replicated to Kafka, but root cause likely manual deletion or a pre-13.8 visibility-map bug.
AI-written summary · about
chapters (7)
- 0:00Introduction and agenda
- 1:52Production incident evidence
- 10:20Transaction ID tracking concepts
- 14:33Root cause analysis of corruption
- 24:32Recovery options and lessons
- 31:11Tools and best practices summary
- 33:36Conclusion and Q&A
related talks
33mPostgres Storytelling: Support in the Darkest Hour
20mDebugging Data Corruption in PostgreSQL
33mFinding and fixing a data-corruption bug...
50mWe have multiple concurrent versions of this title trying to understand MVCC
31m5 Wrong Hypotheses about PostgreSQL Multi-Transaction Locks
27mMaintaining Large Tables in PostgreSQL
01h 07mNavigating Challenging Customer Escalations in Postgres
38mWhen it All Goes Wrong: Database Incident Response Dos and Don'ts
