]> granicus.if.org Git - postgresql/commit
Remove some bogus logic from create_gather_merge_plan.
authorRobert Haas <rhaas@postgresql.org>
Tue, 14 Mar 2017 11:28:35 +0000 (07:28 -0400)
committerRobert Haas <rhaas@postgresql.org>
Tue, 14 Mar 2017 11:43:45 +0000 (07:43 -0400)
commitbce352fb46196340749cf907f3168b5f63969329
tree26a55fb19234e02e5ee65bad0f4a53bec04930c4
parent0c87cd003d9966fcb19d6998ccf90d3276b08e0c
Remove some bogus logic from create_gather_merge_plan.

This logic was adapated from create_merge_append_plan, but the two
cases aren't really analogous, because create_merge_append_plan is not
projection-capable and must therefore have a tlist identical to that
of the underlying paths.  Overwriting the tlist of Gather Merge with
whatever the underlying plan happens to produce is no good at all.

Patch by me, reviewed by Rushabh Lathia, who also reported the issue
and made an initial attempt at a fix.

Discussion: http://postgr.es/m/CA+Tgmob_-oHEOBfT9S25bjqokdqv8e8xEmh9zOY+3MPr_LmuhA@mail.gmail.com
src/backend/optimizer/plan/createplan.c