Preserve Var location information during flatten_join_alias_vars.
Tom Lane <tgl@sss.pgh.pa.us>
Preserve Var location information during flatten_join_alias_vars. This allows us to give correct syntax error pointers when complaining about ungrouped variables in a join query with aggregates or GROUP BY. It's pretty much irrelevant for the planner's use of the function, though perhaps it might aid debugging sometimes.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/optimizer/util/var.c | modified | +10 −7 |