Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7bea19d

Browse files
committed
On second thought, disable parallelism for prepared statements.
CREATE TABLE .. AS EXECUTE can turn an apparently read-only query intoa write operation, which parallel query can't handle. It's a bit of ashame that requires us to avoid parallel query for queries prepared viaPREPARE in all cases, but for right now it does.
1 parent35746bc commit7bea19d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/prepare.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ PrepareQuery(PrepareStmt *stmt, const char *queryString)
159159
nargs,
160160
NULL,
161161
NULL,
162-
CURSOR_OPT_PARALLEL_OK,/*allow parallel mode */
162+
0,/*default cursor options */
163163
true);/* fixed result */
164164

165165
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp