Module 0 · Orientation
Episode 1 The Life of a Query
▶ This video is coming to YouTube soon.
One SELECT walks through every part of Postgres: the parser and parse analysis, the rewriter and views, the planner's cost estimates, the executor's pull-based operators, the buffer pool and the disk. Every stage is checked on a real Postgres with EXPLAIN, pg_rewrite and pg_buffercache, and each box points to the episodes that open it up.
Chapters
- 0:00Intro
- 0:14One line of SQL, eight modules
- 0:36The map: one query, every module
- 2:04Parse: from text to a tree
- 2:55Rewrite: a view is a stored query
- 3:28Plan: estimate everything, run nothing
- 4:18Execute: rows are pulled up the plan
- 5:21The code: one call runs every plan
- 5:57Pages: the buffer pool, then the disk
- 6:53Proof: parser, rewriter, planner
- 8:01Proof: executor, buffer pool, disk
- 8:41The season, box by box
- 9:12Recap
- 9:39Next: The Memory Hierarchy