aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/misc
diff options
context:
space:
mode:
authorSimon Riggs <simon@2ndQuadrant.com>2010-12-08 18:48:03 +0000
committerSimon Riggs <simon@2ndQuadrant.com>2010-12-08 18:48:03 +0000
commite620ee35b249b0af255ef788003d1c9edb815a35 (patch)
treee8b04c9426be8a7abdb95c69b97b6b9f17513bf1 /src/backend/utils/misc
parent5a031a5556ff83b8a9646892715d7fef415b83c3 (diff)
downloadpostgresql-e620ee35b249b0af255ef788003d1c9edb815a35.tar.gz
postgresql-e620ee35b249b0af255ef788003d1c9edb815a35.zip
Optimize commit_siblings in two ways to improve group commit.
First, avoid scanning the whole ProcArray once we know there are at least commit_siblings active; second, skip the check altogether if commit_siblings = 0. Greg Smith
Diffstat (limited to 'src/backend/utils/misc')
-rw-r--r--src/backend/utils/misc/guc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c
index dd19fe9e386..942acb9eeb1 100644
--- a/src/backend/utils/misc/guc.c
+++ b/src/backend/utils/misc/guc.c
@@ -1816,7 +1816,7 @@ static struct config_int ConfigureNamesInt[] =
NULL
},
&CommitSiblings,
- 5, 1, 1000, NULL, NULL
+ 5, 0, 1000, NULL, NULL
},
{