~/talk

PostgreSQL Executor: Executing your execution plan

Talkat PostgreSQL Conference Europe 2024 · 2024-10-22..10-25· [databases]
links:none on file
slides:none on file

PostgreSQL execution splits into three clear phases — preparatory, execution, cleanup — starting at exec_simple_query and building a per-query QueryDesc and EState with a per-query memory context. Execution repeatedly calls ExecProcNode which dispatches node handlers (ExecScan, ExecHashJoin, ExecInsert) and uses tuple slots and expression states; parallel queries spawn workers that share a dynamic shared memory segment and a tle Q reader (example uses two workers), then master gathers results and shuts down.

AI-written summary · about

  1. 0:00Introduction and agenda
  2. 1:47PostgreSQL query pipeline
  3. 2:46Executor lifecycle phases
  4. 6:11Core data structures
  5. 12:28Execution of select queries
  6. 16:32Hash join execution
  7. 19:35Modification queries
  8. 22:31Parallel query execution
  9. 27:58Expression evaluation
  10. 32:30Memory management
  11. 36:11Conclusion and Q&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.