]> granicus.if.org Git - postgresql/commit
Fix incorrect tlist generation in create_gather_plan().
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 Mar 2016 15:56:36 +0000 (10:56 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 9 Mar 2016 15:56:46 +0000 (10:56 -0500)
commit8776c15c85322612b9bf79daf50f74be71c12e05
treee24a6caddd1c4327e1798f8f3ad0d8396268e178
parentaa09cd242fa7e3a694a31f8aed521e80d1e626a4
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.
src/backend/optimizer/plan/createplan.c