~/talk

Tracking plan shapes over time with Plan IDs, and a new pg_stat_plans

Talkat PGConf.dev 2025 · 2025-05-13..05-16· [databases, observability]
slides:none on file

A patch adds a plan ID field in PlannedStmt so extensions can record plan shapes; a new pg_stat_plans extension (PGstep 2.0) uses the cumulative statistics API and a fast tree‑walk jumble to compute plan IDs, stores plan texts in dynamic shared memory with optional compression, and can map a plan ID to a running backend. Measured overhead is a few percent (around 5%) versus ~20–25% for pg_store_plans; extension is functional but not yet production‑stable.

AI-written summary · about

  1. 0:00Introduction to plan IDs
  2. 3:50Why plan IDs matter
  3. 10:06Core vs extension trade-offs
  4. 13:16Introducing pg_stat_plans 2.0
  5. 17:30Performance and next steps
  6. 21:42Q&A on plan tracking
~/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.