pgsql: Fix incorrect tlist generation in create_gather_plan().

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix incorrect tlist generation in create_gather_plan().
Date: 2016-03-09 15:57:01
Message-ID: E1adgTt-0007Bf-ER@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Fix incorrect tlist generation in create_gather_plan().

This function is written as though Gather doesn't project; but it does.
Even if it did not project, though, we must use build_path_tlist to ensure
that the output columns receive correct sortgroupref labeling.

Per report from Amit Kapila.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/8776c15c85322612b9bf79daf50f74be71c12e05

Modified Files
--------------
src/backend/optimizer/plan/createplan.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Robert Haas 2016-03-09 17:16:59 pgsql: Add a generic command progress reporting facility.
Previous Message Robert Haas 2016-03-09 15:52:14 pgsql: postgres_fdw: Consider foreign joining and foreign sorting toget