pgsql: Preserve Var location information during flatten_join_alias_vars

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Preserve Var location information during flatten_join_alias_vars
Date: 2011-11-02 02:13:28
Message-ID: E1RLQKW-0007FX-R4@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/391af9f7842ba8b8d2195aaf82879662434b97f3

Modified Files
--------------
src/backend/optimizer/util/var.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2011-11-02 02:54:23 pgsql: Initialize myProcLocks queues just once, at postmaster startup.
Previous Message Tom Lane 2011-11-01 23:50:15 pgsql: Fix race condition with toast table access from a stale syscache