~/talk

Parallelism in PostgreSQL 15

Talkat Citus Con: An Event for Postgres 2023 · 2023-04-18..04-19· [databases]
slides:none on file

Explains how PostgreSQL 15 runs single-query parallelism using OS processes with a leader and workers, implementing parallel sequential scan and parallel hash/join plans that often scale near-linearly; uses cost_threshold_for_parallelism ~1000 and limits workers via max_parallel_workers_per_gather (default 2). Demonstrates where parallelism helps (CPU-bound aggregates, large table scans) and where it doesn't yet (full outer joins, writes, many FDWs), shows memory/work_mem fragmentation causing excessive partitioning, and outlines fixes and future work that are already partially implemented.

AI-written summary · about

  1. 0:00Introducing Thomas
  2. 1:35Thomas’ talk begins: Parallelism in PostgreSQL
  3. 4:12History of parallelism in relational databases
  4. 6:15The free lunch is over
  5. 7:14Embarassingly parallelizable problems
  6. 11:12Cost-based optimizer
  7. 17:55How do we control parallelism?
  8. 24:37Selected plan types
  9. 29:16Hash join memory struggles
  10. 35:13Q&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.