On second thought, disable parallelism for prepared statements.

Robert Haas <rhaas@postgresql.org>

Commit: 7bea19d0a9d3e6975418ffe685fb510bd31ab434
Author: Robert Haas <rhaas@postgresql.org>
Date: 2016-02-26T11:03:37Z
Releases: 9.6.0
On second thought, disable parallelism for prepared statements.

CREATE TABLE .. AS EXECUTE can turn an apparently read-only query into
a write operation, which parallel query can't handle.  It's a bit of a
shame that requires us to avoid parallel query for queries prepared via
PREPARE in all cases, but for right now it does.

Files

PathChange+/−
src/backend/commands/prepare.c modified +1 −1