~/talk

Optimizing autovacuum: PostgreSQL’s vacuum cleaner

Talkat Citus Con: An Event for Postgres 2022 · 2022-04-12..04-13· [databases]
slides:none on file

Autovacuum wakes by default every minute (autovacuum_naptime = 60s) and triggers when dead tuples exceed a scale factor (example: a 100M‑row table with autovacuum_vacuum_scale_factor = 0.1 only vacuums after ~10M dead tuples). Common fixes are lowering scale factors to 0.02 or 0.002 for very large tables, setting vacuum_cost_delay = 0, increasing autovacuum_max_workers, checking pg_stat_user_tables and pg_stat_progress_vacuum, using pg_prewarm or larger maintenance_work_mem, and monitoring autovacuum_freeze_max_age for wraparound events.

AI-written summary · about

  1. 0:00Introduction
  2. 1:26Why vacuum is essential
  3. 2:51When vacuuming manually works best
  4. 3:58Autovacuum overview
  5. 5:37Autovacuum is not magic
  6. 28:045 things to remember
~/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.