~/talk

Finding and fixing a data-corruption bug...

Talkat PostgreSQL Conference Europe 2024 · 2024-10-22..10-25· [databases]
links:none on file
slides:none on file

Rolling out PostgreSQL 16 causes 0.15% of instances to alert on read errors that trace to the free space map pointing past file end, amplified by a pg16 allocation change that batches page extensions; investigation uses WAL dumps, relation lookups and per-page checks, finds the FSM as the root, and mitigations include VACUUM FULL, removing the free space map, or an internal extension exposing pg_freespacemap to truncate safely; a lightweight check patch lands in 16.3 and is backpatched for customers.

AI-written summary · about

  1. 0:00Introduction and context
  2. 1:14Bug discovery in PostgreSQL
  3. 4:06Symptoms of data corruption
  4. 8:07PostgreSQL storage internals
  5. 10:18Free space map corruption
  6. 15:22Root cause analysis
  7. 19:03Fixing the free space map bug
  8. 21:31Key takeaways and lessons
  9. 23:21Q&A session
~/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.