Preserve Var location information during flatten_join_alias_vars.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 391af9f7842ba8b8d2195aaf82879662434b97f3
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2011-11-02T02:13:11Z
Releases: 9.2.0
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

PathChange+/−
src/backend/optimizer/util/var.c modified +10 −7