~/talk

UNDELETE data FROM table;

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

Postgres rows marked deleted remain on disk and can often be recovered by reading page images or forcing a table scan that ignores visibility. Practical recipes: use pg_dirtyread to return deleted tuples (specify column list, handles xmin/xmax and dropped columns), or extract full-page images from WAL with pg_waldump --save-fpi (dump many FPI files, cat into a new base file, create table copy, then pg_dirtyread). Autovacuum removes candidates after ~50 rows + 20% changed, toast and concurrent updates complicate recovery. Works reliably in clean, low-concurrency cases.

AI-written summary · about

  1. 0:00Introduction to talk
  2. 1:02What is UNDELETE data FROM table
  3. 2:49MVCC and deleted rows
  4. 6:00Introducing PG dirty read
  5. 11:44Handling TOAST and limitations
  6. 14:41Autovacuum and data loss
  7. 16:09Recovering from WAL files
  8. 23:46Practical recovery steps
  9. 25:12Summary and best practices
  10. 26:17Q&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.