pgsql: Don't consider parallel append for parallel unsafe paths.

Started by Amit Kapilaover 8 years ago1 messagescommitters
Jump to latest
#1Amit Kapila
akapila@postgresql.org

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:/messages/by-id/CAKcux6=tPJ6nJ08r__nU_pmLQiC0xY15Fn0HvG1Cprsjdd9s_Q@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/403318b71f7058ecbfb65bcc7de1eec96cd35d3f

Modified Files
--------------
src/backend/optimizer/path/allpaths.c | 5 ++++-
src/test/regress/expected/select_parallel.out | 26 ++++++++++++++++++++++++++
src/test/regress/sql/select_parallel.sql | 9 +++++++++
3 files changed, 39 insertions(+), 1 deletion(-)