~/talk

Understanding Autovacuum

Talkat PGConf Silicon Valley 2016 · 2016-11-14..11-16· [databases]
links:none on file
slides:none on file

Explains exactly what autovacuum does: scans tables to add dead row space to the free space map, remove dead index entries, and replace old XIDs with a visibility map Frozen bit so wraparound never corrupts data. Shows tuning knobs (vacuum_cost_delay/limit, maintenance_work_mem, freeze_ ages) and emergency tools (vacuum full, pg_repack). Shares a Heap case where workload generates 500 GB of bloat in eight hours and fixing it required dropping autovacuum_naptime reduced from 60s to 1s* and increasing workers, costing heavy IO.

AI-written summary · about

  1. 0:00Intro
  2. 0:44Overview
  3. 1:39What's an MVCC?
  4. 8:14VACUUM Problem Statement
  5. 13:04VACUUM FULL
  6. 14:34The XID Ring
  7. 20:02Perf-Improving Maintenance
  8. 25:11Tuning VACUUM
  9. 27:43Tuning Memory Use
  10. 29:21What's an I/O "point"?
  11. 32:35Row-Freezing Trade-Offs
  12. 41:58Row-Freezing TL;DR
  13. 44:00What tables should be autovacuumed?
  14. 46:38Autovacuum Pseudocode
  15. 49:15Problems Start With The Schema...
  16. 50:28Explosive Bloat
~/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.