~/talk

How Autovacuum Goes Wrong: And Can We Please Make It Stop Doing That?

Talkat PGConf.dev 2024 · 2024-05-28..05-31· [databases]
links:none on file
slides:none on file

Explains why autovacuum repeatedly fails: the soft cap autovacuum_vacuum_cost_limit is the dominant cause of slow, starved and backlogged vacuums; raising autovacuum_max_workers often makes things worse because the budget is split. Shows concrete failure modes — useless vacuums held back by xmin, corrupted btree indexes, slow disks, and poor scale-factor behavior on multi‑TB tables — and proposes actionable fixes: auto‑tune cost limits and worker counts, a per‑database collector (using the new TID store) to predict XID/MXID wraparound and prioritize or skip vacuums, and move toward goal‑based completion.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 1:15Major failure modes of autovacuum
  3. 3:44Cost limits and their problems
  4. 15:28Slow and stuck vacuum cases
  5. 21:38Spinning and useless vacuuming
  6. 30:03Starved and skipped tables
  7. 35:09Trigger vs goal-based systems
  8. 38:14Improvement ideas summary
  9. 40:11Q&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.