]> granicus.if.org Git - postgresql/commit
Change EXPLAIN output so that subplans and initplans (particularly CTEs)
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Apr 2009 19:59:40 +0000 (19:59 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 5 Apr 2009 19:59:40 +0000 (19:59 +0000)
commitfbcce08046bc553901ccbcf1ea6cf82f61968970
tree8848ad80ceb71406bf111bb2c99b3c1240410f00
parent329a5322e9280bde04907f947ada2e2627ef41c2
Change EXPLAIN output so that subplans and initplans (particularly CTEs)
are individually labeled, rather than just grouped under an "InitPlan"
or "SubPlan" heading.  This in turn makes it possible for decompilation of
a subplan reference to usefully identify which subplan it's referencing.
I also made InitPlans identify which parameter symbol(s) they compute,
so that references to those parameters elsewhere in the plan tree can
be connected to the initplan that will be executed.  Per a gripe from
Robert Haas about EXPLAIN output of a WITH query being inadequate,
plus some longstanding pet peeves of my own.
src/backend/commands/explain.c
src/backend/nodes/copyfuncs.c
src/backend/nodes/equalfuncs.c
src/backend/nodes/outfuncs.c
src/backend/optimizer/plan/subselect.c
src/backend/utils/adt/ruleutils.c
src/include/nodes/primnodes.h