pgsql: Change checkpoint_completion_target default to 0.9
От | Stephen Frost |
---|---|
Тема | pgsql: Change checkpoint_completion_target default to 0.9 |
Дата | |
Msg-id | E1lP6zN-0007ti-4i@gemulon.postgresql.org обсуждение исходный текст |
Список | pgsql-committers |
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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/bbcc4eb2e08fb6e4535c7f84b2c00f3ad508bb9b Modified Files -------------- doc/src/sgml/config.sgml | 12 ++++++++--- doc/src/sgml/wal.sgml | 29 +++++++++++++++++---------- src/backend/postmaster/checkpointer.c | 2 +- src/backend/utils/misc/guc.c | 2 +- src/backend/utils/misc/postgresql.conf.sample | 2 +- src/test/recovery/t/015_promotion_pages.pl | 1 - 6 files changed, 30 insertions(+), 18 deletions(-)
В списке pgsql-committers по дате отправления: