Don't consider parallel append for parallel unsafe paths.
authorAmit Kapila <akapila@postgresql.org>
Wed, 20 Jun 2018 02:21:42 +0000 (07:51 +0530)
committerAmit Kapila <akapila@postgresql.org>
Wed, 20 Jun 2018 02:21:42 +0000 (07:51 +0530)
commit403318b71f7058ecbfb65bcc7de1eec96cd35d3f
tree38b647ac33a5163828f1f6b2581d1976e6689822
parent1c7c317cd9d1e5647454deed11b55dae764c83bf
Don't consider parallel append for parallel unsafe paths.

Commit ab72716778 allowed Parallel Append paths to be generated for a
relation that is not parallel safe.  Prevent that from happening.

Initial analysis by Tom Lane.

Reported-by: Rajkumar Raghuwanshi
Author: Amit Kapila and Rajkumar Raghuwanshi
Reviewed-by: Amit Khandekar and Robert Haas
Discussion:https://postgr.es/m/CAKcux6=tPJ6nJ08r__nU_pmLQiC0xY15Fn0HvG1Cprsjdd9s_Q@mail.gmail.com
src/backend/optimizer/path/allpaths.c
src/test/regress/expected/select_parallel.out
src/test/regress/sql/select_parallel.sql