Use variable aliases, if supplied, rather than real column names in
Tom Lane <tgl@sss.pgh.pa.us>
Use variable aliases, if supplied, rather than real column names in complaints about ungrouped variables. This is for consistency with behavior elsewhere, notably the fact that the relname is reported as an alias in these same complaints. Also, it'll work with subselect- in-FROM where old code didn't.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/nodes/print.c | modified | +7 −5 |
| src/backend/optimizer/util/clauses.c | modified | +3 −6 |
| src/backend/parser/parse_agg.c | modified | +2 −5 |
| src/backend/parser/parse_relation.c | modified | +38 −1 |
| src/backend/utils/adt/ruleutils.c | modified | +1 −32 |
| src/include/parser/parsetree.h | modified | +11 −9 |