Use a varno not chosen at random for dummy variables in the top-level
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Feb 2003 04:13:39 +0000 (04:13 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 11 Feb 2003 04:13:39 +0000 (04:13 +0000)
commit02c614dc85ae085272c841977ec125bcea0b0306
tree17bf4183c2a735a4c17a657c9a1fba9599904685
parentd3038e6e2cc61e999caf133c404b94137aa0df1d
Use a varno not chosen at random for dummy variables in the top-level
targetlist of a set-operation tree.  I'm not sure that this solution
will really stand the test of time --- perhaps we need to make a special
RTE for such vars to refer to.  But this quick hack fixes Brandon Craig
Rhodes' complaint of 10-Feb-02 about EXCEPT in CREATE RULE, while not
changing any behavior in the better-tested cases where leftmostRTI is
one anyway.
src/backend/parser/analyze.c