~/talk

Avoiding, Detecting, and Recovering From Data Corruption

Talkat PGCon 2020 · 2020-05-26..05-29· [databases]
slides:none on file

PostgreSQL corruption usually stems from three concrete causes: bad disk/memory, software bugs (OS, FS, backup tool), or unsafe backup/restore scripts. Key defenses are repeatable tested backups and restores, fsync and full_page_writes enabled, correct wal_sync_method, and pg_checksums enabled to detect bitrot. Recovery workflow is: copy all data files, try pg_dump into a fresh initdb, use pg_resetwal only to start when WALs are missing, or use pg_file_dump to extract raw rows; expect manual fixes for logical constraints.

AI-written summary · about

  1. 0:00Introduction to corruption
  2. 2:36Defining database corruption
  3. 5:06Causes of corruption
  4. 7:34Best practices overview
  5. 9:39Backup and restore strategies
  6. 11:24PostgreSQL configuration
  7. 15:16Checksums and detection
  8. 16:42Storage best practices
  9. 20:31File system recommendations
  10. 23:00Monitoring storage errors
  11. 24:03Database administration
  12. 25:49Avoid manual data file changes
  13. 27:58Plug testing and recovery
  14. 28:41Signs of corruption
  15. 33:36Recovering from corruption
  16. 36:47Dumping corrupted data
  17. 45:15Final summary and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.