Replace generic 'Illegal use of aggregates' error message with one that
Tom Lane <tgl@sss.pgh.pa.us>
Replace generic 'Illegal use of aggregates' error message with one that shows the specific ungrouped variable being complained of. Perhaps this will reduce user confusion...
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/plan/planmain.c | modified | +2 −5 |
| src/backend/optimizer/plan/planner.c | modified | +4 −5 |
| src/backend/optimizer/util/clauses.c | modified | +47 −13 |
| src/backend/parser/parse_agg.c | modified | +63 −49 |
| src/include/optimizer/clauses.h | modified | +3 −3 |
| src/test/regress/expected/select_implicit.out | modified | +2 −2 |