~/talk

Understanding and Fixing Autovacuum

slides:none on file

Explains why autovacuum misjudges work and lists concrete diagnostics and fixes: check OS tools (top/ps), inspect wait_event in pg_stat_activity and phase in pg_stat_progress_vacuum, watch IO/CPU, and detect long transactions, prepared transactions or orphaned replication slots. Fixes include raising vacuum_cost_limit (or lowering autovacuum_vacuum_cost_delay), increasing autovacuum_max_workers while scaling the cost limit, per-table autovacuum_vacuum_scale_factor, reindexing or dropping corrupted indexes, and avoiding PG_STAT_RESET; notes v12 and v16 behavior changes that affect live tuning.

AI-written summary · about

  1. 0:00Introduction
  2. 1:20How autovacuum works
  3. 7:04When autovacuum fails
  4. 13:59Fixing slow or stuck vacuum
  5. 26:16Fixing repeated vacuuming
  6. 30:26Handling skipped tables
  7. 40:10Q&A and conclusion
~/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.