Log Message:
-----------
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.
Modified Files:
--------------
pgsql/src/backend/optimizer/plan:
setrefs.c (r1.115 -> r1.116)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/optimizer/plan/setrefs.c.diff?r1=1.115&r2=1.116)
pgsql-committers by date
| Next: | From: Tom Lane | Date: 2005-11-03 17:45:30 |
| Subject: pgsql: Thinking further, it seems we had better also copy down |
| Previous: | From: Alvaro Herrera | Date: 2005-11-03 17:26:04 |
| Subject: Re: [COMMITTERS] pgsql: Rename the members of CommandDest enum so |