pgsql: Fix the recently-added code that eliminates unnecessary

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix the recently-added code that eliminates unnecessary
Date: 2005-11-03 17:34:03
Message-ID: 20051103173403.BD6B7D87D9@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2005-11-03 17:45:30 pgsql: Thinking further, it seems we had better also copy down
Previous Message Alvaro Herrera 2005-11-03 17:26:04 Re: [COMMITTERS] pgsql: Rename the members of CommandDest enum so