Improve coding pattern in Parallel Append code.
authorAmit Kapila <akapila@postgresql.org>
Fri, 22 Jun 2018 03:13:36 +0000 (08:43 +0530)
committerAmit Kapila <akapila@postgresql.org>
Fri, 22 Jun 2018 03:13:36 +0000 (08:43 +0530)
commit98d476a965eefb52af53f4fb55dbfead0ede9282
tree12c4814d523a180599d16e594b3738525236c6c4
parentc7048977a73b4ab3b38b9a28bc58e600b598c176
Improve coding pattern in Parallel Append code.

The create_append_path code didn't consider that list_concat will
modify it's first argument leading to inconsistent traversal of
resulting list.  In practice, it won't lead to any user-visible bug
but changing it for making the code behave consistently.

Reported-by: Tom Lane
Author: Tom Lane
Reviewed-by: Amit Khandekar and Amit Kapila
Discussion: https://postgr.es/m/32365.1528994120@sss.pgh.pa.us
src/backend/optimizer/util/pathnode.c