Fix possible infinite loop with Parallel Append.
authorRobert Haas <rhaas@postgresql.org>
Thu, 8 Feb 2018 17:31:48 +0000 (12:31 -0500)
committerRobert Haas <rhaas@postgresql.org>
Thu, 8 Feb 2018 17:31:48 +0000 (12:31 -0500)
commit88fdc7006018b92d6ec92c54b3819764703daaba
treee7fbaf2b57f0d839fd6f8f34511cdf68fe5ae51b
parentb3a101eff0fd3747bebf547b1769e28f820f4515
Fix possible infinite loop with Parallel Append.

When the previously-chosen plan was non-partial, all pa_finished
flags for partial plans are now set, and pa_next_plan has not yet
been set to INVALID_SUBPLAN_INDEX, the previous code could go into
an infinite loop.

Report by Rajkumar Raghuwanshi.  Patch by Amit Khandekar and me.
Review by Kyotaro Horiguchi.

Discussion: http://postgr.es/m/CAJ3gD9cf43z78qY=U=H0HvOEN341qfRO-vLpnKPSviHeWgJQ5w@mail.gmail.com
src/backend/executor/nodeAppend.c