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

Commitc7ea68f

Browse files
committed
Limit maximum parallel degree to 1024.
This new limit affects both the max_parallel_degree GUC and theparallel_degree reloption. There may some day be a use case for usingmore than 1024 CPUs for a single query, but that's surely not the caseright now. Not only do not very many people have that many CPUs, butthe code hasn't been tested at that kind of scale and is very unlikelyto perform well, or even work at all, without a lot more work. Theissue addressed by commit06bd458 isprobably just one problem of many.The idea of a more reasonable limit here was suggested by Tom Lane;the value of 1024 was suggested by Amit Kapila.
1 parent73b9952 commitc7ea68f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/access/common/reloptions.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static relopt_int intRelOpts[] =
275275
RELOPT_KIND_HEAP,
276276
AccessExclusiveLock
277277
},
278-
-1,0,MAX_BACKENDS
278+
-1,0,1024
279279
},
280280

281281
/* list terminator */

‎src/backend/utils/misc/guc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2662,7 +2662,7 @@ static struct config_int ConfigureNamesInt[] =
26622662
NULL
26632663
},
26642664
&max_parallel_degree,
2665-
2,0,MAX_BACKENDS,
2665+
2,0,1024,
26662666
NULL,NULL,NULL
26672667
},
26682668

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp