Season 1 finale

Episode 44 Season Finale: The Life of a Query, Revisited

7 min · SQL · Postgres

Title card of Episode 44: Season Finale: The Life of a Query, Revisited

▶ This video is coming to YouTube soon.

The finale of Season 1. Episode 1's map of Postgres again, with every box opened up: parser, planner, executor, indexes, buffer pool, transactions and the WAL. Then one UPDATE followed all the way down on real Postgres: its plan, its WAL bytes, its transaction id and locks, the new row version, COMMIT waiting for the flush, and the dirty page a checkpoint writes later.

Chapters

  1. 0:00Intro
  2. 0:12Every box, opened
  3. 0:31The map, every box opened
  4. 1:43Episode 1's query, every node explained
  5. 2:32Proof: the plan Postgres ran
  6. 2:52A read, retraced
  7. 3:25Proof: the read
  8. 3:42One UPDATE, all the way down
  9. 4:47Proof: the UPDATE, box by box
  10. 5:59Season 1 on one page
  11. 6:31Recap
  12. 6:59Next: Season 2