~/talk

Reproduce those complex query planner issues

Talkat PGConf India 2025 · 2025-03-05..03-07· [databases]
links:none on file
slides:none on file

Tool CBO stat dump extracts pg_class relpages/reltuples, pg_statistic and pg_statistic_ext, DDL, GUCs and query plans so a test cluster with empty tables reproduces planner decisions from production. Using Taco revealed Postgres 15 picks best plans only ~30% of the time and speedups up to 16x are possible. Reproduction sometimes needs a pg-15 patch to stop page-count extrapolation and a small insert workaround for pseudo-types; once applied, plan shapes match and enable local debugging and hint-based workarounds.

AI-written summary · about

  1. 0:00Introduction to CBO stat dump
  2. 7:27How CBO stat dump works
  3. 13:08Live demonstration of the tool
  4. 20:40Practical use cases and benefits
  5. 27:45Limitations and future improvements
  6. 28:27Q&A session
~/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.