~/talk

A Detailed Understanding of MVCC and Autovacuum Internals in PostgreSQL 14

Talkat Percona Live 2022 · 2022-05-16..05-18· [databases]
links:none on file
slides:none on file

Explains that PostgreSQL MVCC keeps undo as old rows in the same table (xmin/xmax/ctid visible via page_inspect), demonstrates pg_free_space_map to show free space, and measures auto‑vacuum behaviour with default formula (vacuum when changes ≥ 0.2N + 50) and cost settings (default cost_limit 200* with 20 ms sleep), deriving best‑case vacuum throughput (~78 MB/s memory, ~7.8 MB/s disk, ~3.9 MB/s dirty). Covers XID wraparound limits (32‑bit ≈4.2B, warnings at ≈11M left, stop at ≈1M) and PG14’s less aggressive freeze scanning.

AI-written summary · about

  1. 0:00Start
  2. 2:46UNDO Management - Oracle & PostgreSQL
  3. 22:06VACUUM / AUTOVACUUM
  4. 28:11Transaction ID Wraparound
  5. 43:35Points to Note
~/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.