~/talk

Beyond Joins and Indexes

Talkat POSETTE: An Event for Postgres 2024 · 2024-06-11..06-13· [databases]
slides:none on file

Explains that the Postgres optimizer actually chooses 43 different plan-node strategies beyond simple joins and indexes, shows the exact SQL and EXPLAIN output used to produce each plan, and demonstrates which ones measurably speed queries. Examples include incremental_sort using an index for the leading ORDER BY column, memoize cache that stores hot right‑side lookups (Postgres 14) and parallel hash join / parallel aggregate that split scans and combine partial results; slides and runnable SQL are provided.

AI-written summary · about

  1. 0:00Intro
  2. 1:23What will be covered (numbered list)
  3. 3:03#1-3 Result ... Function Scan
  4. 4:01#4-7 Incremental Sort ... Merge Append
  5. 7:02#8-10 Subquery Scan ... SetOp
  6. 8:39#11-12 Materialize .. Memoize
  7. 12:26#13-18 Group ... WindowAgg
  8. 15:13#19-26 Parallel Seq Scan ... Parallel Hash Join
  9. 19:58#27-29 CTE Scan ... Recursive Union
  10. 21:54#30-35 ProjectSet ... Tid Scan
  11. 23:13#36-39 Insert ... Merge
  12. 23:53#40-42 Semi Join ... SubPlan
  13. 25:25#43 Others
  14. 25:49Conclusion
~/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.