The plan, running

The planner’s side of a query: statistics in, one chosen plan out. This lesson starts where that board stops, at the moment the chosen plan begins to run and needs memory to do it.
Before you start. The Query Planner showed the planner: the part of Postgres that reads a summary of your data and bets on one way to answer a query. Database 07: The Query Layer built the other half by hand: a plan is a tree of small steps, and each step pulls rows from the one below it, one row at a time. This lesson is about what those steps do when the rows they must hold do not fit in the memory they were given.