The Edge of ACID with Injection Points
summary
Shows how Postgres’ minimal injection points implement wait-and-wake synchronization to reproduce and fix real concurrency bugs. Tools: TAP tests that attach injection points, background psql, and occasional GDB; suggestions for a C API, counters/expiry and kill -9 support. Case studies include a reindex-concurrent bug fixed by swapping two lines, shrinking repro time from hours to 50 milliseconds, a multitransaction deadlock that turned into corruption and was eliminated, and a visibility-map corruption that was actually induced by conditional-variable wakeups. Tests aim for zero production overhead.
AI-written summary · about
chapters (16)
- 0:00Introduction and priorities
- 1:14Systematic complexity and tools
- 3:17Injection points concept
- 5:17Alternatives to injection points
- 7:43How injection points work
- 10:08Case study race conditions
- 13:31Complex bug reproduction
- 14:21Multitransaction bug
- 16:58Debugging with injection points
- 18:29Visibility map corruption
- 21:23Parallel group race condition
- 22:36Wish list for injection points
- 24:32Summary and closing
- 24:58Q&A begins
- 29:07Q&A injection points at startup
- 30:16Q&A time control for races
