aboutsummaryrefslogtreecommitdiff
path: root/src/backend/postmaster/checkpointer.c
diff options
context:
space:
mode:
authorStephen Frost <sfrost@snowman.net>2021-03-24 13:07:51 -0400
committerStephen Frost <sfrost@snowman.net>2021-03-24 13:07:51 -0400
commitbbcc4eb2e08fb6e4535c7f84b2c00f3ad508bb9b (patch)
tree64b67f0b4ba21b9ac6496b6f3f21c1e456a77920 /src/backend/postmaster/checkpointer.c
parente5595de03ec6ce60afde980ae05e9353a1501fdf (diff)
downloadpostgresql-bbcc4eb2e08fb6e4535c7f84b2c00f3ad508bb9b.tar.gz
postgresql-bbcc4eb2e08fb6e4535c7f84b2c00f3ad508bb9b.zip
Change checkpoint_completion_target default to 0.9
Common recommendations are that the checkpoint should be spread out as much as possible, provided we avoid having it take too long. This change updates the default to 0.9 (from 0.5) to match that recommendation. There was some debate about possibly removing the option entirely but it seems there may be some corner-cases where having it set much lower to try to force the checkpoint to be as fast as possible could result in fewer periods of time of reduced performance due to kernel flushing. General agreement is that the "spread more" is the preferred approach though and those who need to tune away from that value are much less common. Reviewed-By: Michael Paquier, Peter Eisentraut, Tom Lane, David Steele, Nathan Bossart Discussion: https://postgr.es/m/20201207175329.GM16415%40tamriel.snowman.net
Diffstat (limited to 'src/backend/postmaster/checkpointer.c')
-rw-r--r--src/backend/postmaster/checkpointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/postmaster/checkpointer.c b/src/backend/postmaster/checkpointer.c
index 5907a7befc5..e7e6a2a4594 100644
--- a/src/backend/postmaster/checkpointer.c
+++ b/src/backend/postmaster/checkpointer.c
@@ -145,7 +145,7 @@ static CheckpointerShmemStruct *CheckpointerShmem;
*/
int CheckPointTimeout = 300;
int CheckPointWarning = 30;
-double CheckPointCompletionTarget = 0.5;
+double CheckPointCompletionTarget = 0.9;
/*
* Private state