~/talk

5 Wrong Hypotheses about PostgreSQL Multi-Transaction Locks

Talkat SREcon26 Americas · 2026-03-24..03-26· [databases]
slides:none on file

An index change triggers a vacuum ANALYZE and then the DB hits pathological SLRU aggregate accesses growth (millions/sec), locking up queries; killing long transactions or restarting helps briefly. Upgrading four major Postgres releases reduces SLRU hit rate; measurable limits appear — ~4,000 open txns, default multixact freeze age 400,000,000 wraps — so teams set autovacuum_multixact_freeze_max_age=1.5M and use manual VACUUM FREEZE plus alerts at 200k/sec to relieve pressure and keep Aurora Postgres stable.

AI-written summary · about

  1. 0:00Introduction
  2. 2:46Multi-transaction locks
  3. 5:36First incident and hypothesis
  4. 8:04Root cause of lockups
  5. 11:11Escalation and failed fixes
  6. 14:02New hypotheses and experiments
  7. 16:30Reducing locks in production
  8. 18:16Seeking PostgreSQL expertise
  9. 19:59Upgrading and cache hits
  10. 21:46Load testing pressure points
  11. 23:10Hypothesis five breakthrough
  12. 25:17Auto vacuum freeze settings
  13. 27:02Learning from stability and new questions
  14. 29:09Key takeaways and call to action
~/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.