[prev] 15 [next]

Top-down Trace of QOpt (cont)

pg_plan_queries()
  • takes a list of parsed/re-written queries
  • plans each one via planner()
    • which invokes subquery_planner() on each query
  • returns a list of query plans
Code in: backend/optimizer/plan/planner.c