]> granicus.if.org Git - postgresql/commit
Fix the recently-added code that eliminates unnecessary SubqueryScan nodes
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Nov 2005 17:34:03 +0000 (17:34 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 3 Nov 2005 17:34:03 +0000 (17:34 +0000)
commitabf293e155e6625845169d42c33d77d381e40d6a
tree364a6c332e25a193059fc95711ef5e7f9a88aaf2
parent902377c465031947d747bb2e3912b22a92329b7f
Fix the recently-added code that eliminates unnecessary SubqueryScan nodes
from a finished plan tree.  We have to copy the output column names
(resname fields) from the SubqueryScan down to its child plan node;
else, if this is the topmost level of the plan, the wrong column names
will be delivered to the client.  Per bug #2017 reported by Jolly Chen.
src/backend/optimizer/plan/setrefs.c