Fix parallel index builds for dynamic_shared_memory_type=none.

Robert Haas <rhaas@postgresql.org>

Commit: 88ef48c1ccee6a2200e01318180cf521413b3012
Author: Robert Haas <rhaas@postgresql.org>
Date: 2018-02-12T17:55:12Z
Releases: 11.0
Fix parallel index builds for dynamic_shared_memory_type=none.

The previous code failed to realize that this setting effectively
disables parallelism, and would crash if it decided to attempt
parallelism anyway.  Instead, treat it as a disabling condition.

Kyotaro Horiguchi, who also reported the issue. Reviewed by Michael
Paquier and Peter Geoghegan.

Discussion: http://postgr.es/m/20180209.170635.256350357.horiguchi.kyotaro@lab.ntt.co.jp

Files

PathChange+/−
src/backend/optimizer/plan/planner.c modified +2 −1

Discussion