~/talk

Understanding & Managing Postgres Table Bloat

Talkat Citus Con: An Event for Postgres 2023 · 2023-04-18..04-19· [databases]
linkedin:chelsea-dole
slides:none on file

Explains that Postgres bloat comes from MVCC creating dead tuples (heavy UPDATE/DELETE patterns) plus conservative autovacuum settings; measurable with pgstattuple (accurate but O(n)) or lightweight估imate queries (O(1)); fixes include tuning autovacuum (set autovacuum_vacuum_scale_factor low, threshold, autovacuum_vacuum_cost_delay ≈2ms, increase max_workers) and reclaiming space with VACUUM FULL (exclusive lock) or online tools like pg_repack (works on RDS) vs pg_squeeze (requires binary change); gives empirical bloat guidance (small tables ≤70%, medium ≈25%, large ≤18–20%).

AI-written summary · about

  1. 0:00Introduction
  2. 1:52Multi-version Concurrency Control (MVCC)
  3. 8:19Vacuum
  4. 10:37Table bloat
  5. 14:27Avoiding Postgres table bloat
  6. 22:19Designing bloat-aware data access patterns
~/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.