~/talk

Tracking plan shapes over time with Plan IDs and the new pg_stat_plans

slides:none on file

pg_stat_plans extension builds low‑overhead plan tracking by assigning a 64‑bit plan ID via a planner tree walk and copied jumbling logic rather than hashing explain output, and it uses the Postgres 18 ability to set a plan ID on PlanStmt. Benchmarks show much lower overhead than pg_store_plans (avoids the ~20% hit), supports Postgres 16–18, stores plan text in 10 MB dynamic shared memory with compression (example 4,700 bytes → 855 bytes) and a dictionary that fits ~17,000 big plans in 10 MB.

AI-written summary · about

  1. 0:00Introduction
  2. 1:27What are plan shapes
  3. 8:13Calculating plan IDs
  4. 13:27Postgres 18 improvements
  5. 15:34Introducing pg_stat_plans
  6. 20:30Plan text storage and compression
  7. 23:20Future work and open questions
  8. 25:54Q&A
~/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.