~/talk

My Journey in PostgreSQL bug fixing

Talkat PGConf.dev 2025 · 2025-05-13..05-16· [databases]
links:none on file
slides:none on file

Shows how a real PostgreSQL bug is narrowed from “works in 14, crashes in 13” to a single commit using git bisect, reproduces an assertion crash by attaching gdb watchpoints to trace portal_snapshot changes, and lands a minimal patch that starts community discussion and is later rewritten and committed; builds a deterministic repro for a logical decoding visibility bug using a replication slot plus checkpoints, proves the snapshot-visibility root cause, submits a patch, and documents that master and back branches require different fixes; one fix takes weeks to finalize.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 0:51What this talk covers
  3. 2:03First steps after finding a bug
  4. 3:35Bug report examples by difficulty
  5. 4:19Live demo setup
  6. 5:16Demo crash and version check
  7. 6:13Using git bisect to find the fix
  8. 10:40Takeaways from first demo
  9. 11:00Second bug example with assertions
  10. 12:29Debugging with assertions
  11. 13:15Using GDB to inspect code
  12. 14:00Debugger session walkthrough
  13. 21:47Creating a patch and community outreach
  14. 23:38Importance of starting the discussion
  15. 24:23Third bug with logical decoding
  16. 25:05Analyzing the error message
  17. 26:35Debugging logical decoding
  18. 31:25Understanding logical decoding snapshots
  19. 33:12Replication slot and LSN analysis
  20. 34:43Building the reproduction case
  21. 38:02Creating the repro sequence
  22. 39:30Testing the reproduction case
  23. 40:16Submitting the patch
  24. 41:19How the bug was fixed upstream
  25. 42:01Final takeaways and Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.