StageTriggerSystemOutput
01 · ParseTriggerSQL statement submittedSystemTokenizer and recursive-descent parserOutputAn abstract syntax tree, or a syntax error with a position
02 · PlanTriggerStatement parsed and validated against the catalogSystemPlanner choosing sequential scan or index scanOutputAn operator tree
03 · ExecuteTriggerPlan readySystemOperator tree pulling tuples through the access layerOutputResult rows, or a mutation staged against pages
04 · PageTriggerAccess layer needs a pageSystemBuffer pool: hit, or evict a victim and read from diskOutputA pinned frame; dirty victims flushed under WAL ordering
05 · LogTriggerA page is about to be modifiedSystemWrite-ahead log appended and flushed before the page writeOutputA durable record of the change ahead of the change itself
06 · RecoverTriggerProcess starts after a crashSystemLog scan, redo committed work, undo uncommitted workOutputA consistent database with no partial transactions