Change Agg and Group nodes so that Vars contained in their targetlists
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/commands/explain.c | modified | +41 −27 |
| src/backend/executor/nodeAgg.c | modified | +9 −9 |
| src/backend/executor/nodeGroup.c | modified | +9 −4 |
| src/backend/executor/nodeResult.c | modified | +3 −5 |
| src/backend/optimizer/plan/setrefs.c | modified | +8 −17 |
| src/backend/utils/adt/ruleutils.c | modified | +2 −2 |