~/talk

pgstats and PostgreSQL 18

Talkat PGConf.dev 2026 · 2026-05-19..05-22· [databases]
slides:none on file

PostgreSQL moves cumulative stats into shared memory since v15 and v18 adds concrete changes: variable vs fixed-size stat kinds, 8-byte OIDs for object keys, backend-level APIs (pgstat_backend.c) and pgstat_io now counts bytes instead of blocks. Stats live in shared memory, flush on commit and are lost on crash unless saved at shutdown, which can leave autovacuum blind. v19 exposes an extension API so extensions can register custom stat kinds using provided templates and callbacks.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:51PG stats architecture overview
  3. 4:17Stats kinds and shared memory
  4. 8:15Core stats implementation files
  5. 10:24Fixed size stats details
  6. 11:47Transaction commit and stats flushing
  7. 12:30Variable size stats and hash tables
  8. 14:12PostgreSQL 18 new APIs
  9. 15:38PG stat IO improvements in 18
  10. 16:20Parallel worker and statement stats
  11. 17:03Extensions using PG stats
  12. 18:47Future of PG stat statements
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.