Change Agg and Group nodes so that Vars contained in their targetlists
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Feb 2007 23:44:25 +0000 (23:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 22 Feb 2007 23:44:25 +0000 (23:44 +0000)
commitaa8076c7adf902d00291192eaa68e6789145778f
tree3f6494c96b477978895f944ec797b6ef06f4f20d
parent22b8154a4c61fc048f475c585a5bb7ba7aa3d373
Change Agg and Group nodes so that Vars contained in their targetlists
and quals have varno OUTER, rather than zero, to indicate a reference to
an output of their lefttree subplan.  This is consistent with the way
that every other upper-level node type does it, and allows some simplifications
in setrefs.c and EXPLAIN.
src/backend/commands/explain.c
src/backend/executor/nodeAgg.c
src/backend/executor/nodeGroup.c
src/backend/executor/nodeResult.c
src/backend/optimizer/plan/setrefs.c
src/backend/utils/adt/ruleutils.c