Fix possible infinite loop with Parallel Append.

Robert Haas <rhaas@postgresql.org>

Commit: 88fdc7006018b92d6ec92c54b3819764703daaba
Author: Robert Haas <rhaas@postgresql.org>
Date: 2018-02-08T17:31:48Z
Releases: 11.0
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

Files

PathChange+/−
src/backend/executor/nodeAppend.c modified +8 −2

Discussion