~/talk

Parallel Processing in PostgreSQL

Talkat Postgres Conference Orlando 2025 · 2025-03-18..03-21· [databases]
name:Raj J
links:none on file
name:Rajeev T
links:none on file
slides:none on file

Explains PostgreSQL’s parallel architecture (gather plus workers), the optimizer costs that choose parallel vs serial (notably parallel_tuple_cost and parallel_setup_cost), and tuning knobs like max_parallel_workers_per_gather, max_parallel_workers, min_parallel_table_scan_size 8MB and min_parallel_index_scan_size 512KB. Shows explain vs workers planned vs workers launched (planned can be 2 but launched 0 if workers are busy), gives a concrete index build: 17 → 9 minutes with 4 workers, warns JDBC nonzero fetch count blocks parallelism, and covers parallel index build and vacuum behavior.

AI-written summary · about

  1. 0:00Parallel query in PostgreSQL
  2. 1:06Serial execution in PostgreSQL
  3. 1:48Parallel query architecture
  4. 3:14Key parameters for parallel performance
  5. 5:40Cost estimation for parallel queries
  6. 8:08Calculating query costs
  7. 10:36Parallel safety in functions
  8. 12:00Parallel index creation
  9. 14:27Practical parallel query use
  10. 16:33Tuning parallel parameters
  11. 17:40Client-side limitations
  12. 18:21Monitoring parallel performance
  13. 19:23Version limitations and improvements
  14. 20:45When to use parallel query
  15. 21:26Conclusion
~/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.