~/talk

Debugging Data Corruption in PostgreSQL

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

A practical framework walks from extracting clues in PostgreSQL logs to verifying files with ls, stat and dd, using pageinspect and GDB to inspect pages and trace mdread, and relying on pg_basebackup and smartctl for recovery and disk health. Common errors covered include Could not read block, Cannot freeze committed xmax, and Could not locate valid checkpoint; corrupted indexes are often fixed by reindex, missing heap blocks require a backup copy, and desperate recovery uses pg_resetwal.

AI-written summary · about

  1. 0:00Introduction
  2. 1:17What is data corruption
  3. 2:21Causes of corruption
  4. 3:49Database layout basics
  5. 7:05Analyzing corruption cases
  6. 12:07Best practices for detection
  7. 14:36Management practices
  8. 15:39Backup and restore
  9. 16:44Detecting corruption
  10. 17:47Recovery techniques
  11. 19:12Q&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.