~/talk

Debugging Data Corruption in PostgreSQL: A Systematic Approach

links:none on file
slides:none on file

A systematic debugging framework walks through concrete steps: validate pg_controldata, run pg_waldump on the WAL named by the last checkpoint, use pg_checksums / pg_verify_checksums to detect bad pages (Postgres uses 8 KB pages and 1 GB relation segments), isolate corrupt objects with pg_amcheck, repair indexes with REINDEX, and only as a last resort use pg_resetwal (risking data loss). The talk reproduces corruption with dd, shows "could not read block" and "could not locate valid checkpoint", and cites backports to 15.11, 14.16, 13.19.

AI-written summary · about

  1. 0:00Introduction
  2. 2:23What is Data Corruption?
  3. 3:16Causes of Corruption
  4. 10:49Analysis of a Few Corruption Cases
  5. 21:35Best Practices to Handling Corruption Cases
  6. 23:08How to detect corruption
  7. 29:36Corruption Recovery
~/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.