mirror of
https://github.com/postgres/postgres.git
synced 2026-04-21 22:28:15 -04:00
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.
This commit is contained in:
parent
35746bc348
commit
7bea19d0a9
1 changed files with 1 additions and 1 deletions
|
|
@ -159,7 +159,7 @@ PrepareQuery(PrepareStmt *stmt, const char *queryString)
|
|||
nargs,
|
||||
NULL,
|
||||
NULL,
|
||||
CURSOR_OPT_PARALLEL_OK, /* allow parallel mode */
|
||||
0, /* default cursor options */
|
||||
true); /* fixed result */
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue