~/talk

Join Statistics

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

Planner misestimates cause huge costs — a real case shows 193 million vs 4 rows (7.68 orders of magnitude) which forces JIT startup and makes execution 5,000× slower. Proposal adds optimizer views stored in pg_class that point to a base relation plus a flag, letting the planner use sampled join statistics collected by probing indexes from a row sample instead of only per-table stats. Proofs of concept report about 1.5–2× query improvement; collection uses index probes or ephemeral relations and avoids materialized view storage or fragile incremental maintenance.

AI-written summary · about

  1. 0:00Introduction
  2. 0:24Star join problem
  3. 1:07Estimate miscalculation example
  4. 3:34Current statistics limitations
  5. 4:56Extended statistics explained
  6. 6:41Problems with materialized views
  7. 8:29Existing solutions overview
  8. 10:18Introducing join statistics
  9. 11:40Proof of concept improvements
  10. 13:05Statistics storage options
  11. 18:06DB2 optimizer statistics
  12. 20:37Planner integration challenges
  13. 23:32Optimizer view limitations
  14. 27:06Statistics collection methods
  15. 29:36Proposed solution summary
  16. 31:24Default optimizer stats debate
  17. 33:11Performance improvements
  18. 34:46Q&A introduction
  19. 35:32Incremental materialized views
  20. 36:37View optimization questions
  21. 40:36Subset query handling
  22. 42:04Pairwise vs combined statistics
  23. 43:49Query planning complexity
  24. 45:59Syntax consistency concerns
  25. 47:23Star join optimization
  26. 48:47Statistics invalidation
~/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.