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

Commit8a7cd78

Browse files
committed
Allow parallelism in COPY (query) TO ...;
Previously this was not allowed, as copy.c didn't set theCURSOR_OPT_PARALLEL_OK flag when planning the query. Set it.While the lack of parallel query for COPY isn't strictly speaking abug, it does prevent parallelism from being used in a facilitycommonly used to run long running queries. Thus backpatch to 9.6.Author: Andres FreundDiscussion:https://postgr.es/m/20170531231958.ihanapplorptykzm@alap3.anarazel.deBackpatch: 9.6, where parallelism was introduced.
1 parent8d9b4fe commit8a7cd78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/commands/copy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ BeginCopy(bool is_from,
14911491
}
14921492

14931493
/* plan the query */
1494-
plan=pg_plan_query(query,0,NULL);
1494+
plan=pg_plan_query(query,CURSOR_OPT_PARALLEL_OK,NULL);
14951495

14961496
/*
14971497
* With row level security and a user using "COPY relation TO", we

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp