~/talk

MultiXacts in PostgreSQL: usage, side effects, and monitoring

links:none on file
slides:none on file

PostgreSQL creates MultiXacts when multiple transactions lock the same row and stores them in pg_multixact (offsets + members) on disk and SLRU cache; they are 32‑bit and hit wraparound at ~2.1 billion or when storage reaches ~20 GB (aggressive autovacuum starts near 10 GB). Common causes: foreign keys, select for share/for update, subtransactions and JDBC autosave. Monitor with age queries, pgstat_slru, aurora_stat_utils / rds extensions; mitigation is manual or forced vacuum freeze, reduce long transactions, tune multixact buffers and upgrade to PG17.

AI-written summary · about

  1. 0:00Introduction
  2. 1:24Why monitor max used XIDs
  3. 3:12Tuple header and MultiXacts
  4. 6:05Operations using MultiXacts
  5. 8:15MultiXact storage and wraparound
  6. 12:29Autovacuum for MultiXacts
  7. 16:42Monitoring MultiXact usage
  8. 23:10SLRU optimizations in PG17
  9. 26:42MultiXacts vs standard XIDs
  10. 29:18Managing MultiXacts
  11. 33:16Summary and best practices
  12. 35:06Q&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.