From 275cc0a006c3788d28b5b9489681d7583fe36976 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Wed, 13 Oct 2021 11:26:43 +0900 Subject: [PATCH] Enable streaming replication check by default. Change the compile time default value of sr_check_period from 0 to 10. This means if operating in streaming replication mode, now streaming replication check is enabled by default. The parameter is already set to 10 in pgpool.conf.sample-stream. So the only difference is, when sr_check_period is commented out. Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2021-October/004042.html --- doc.ja/src/sgml/stream-check.sgml | 2 +- doc/src/sgml/stream-check.sgml | 2 +- src/config/pool_config_variables.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc.ja/src/sgml/stream-check.sgml b/doc.ja/src/sgml/stream-check.sgml index 665e36fd8..938601097 100644 --- a/doc.ja/src/sgml/stream-check.sgml +++ b/doc.ja/src/sgml/stream-check.sgml @@ -47,7 +47,7 @@ Default is 0, which means the check is disabled. --> ストリーミングレプリケーションの遅延チェックの間隔を秒単位で指定します。 - デフォルト値は0で、これはチェックを行わないことを意味します + デフォルト値は10です。 diff --git a/doc/src/sgml/stream-check.sgml b/doc/src/sgml/stream-check.sgml index c54035d06..dde3911c6 100644 --- a/doc/src/sgml/stream-check.sgml +++ b/doc/src/sgml/stream-check.sgml @@ -29,7 +29,7 @@ Specifies the time interval in seconds to check the streaming replication delay. - Default is 0, which means the check is disabled. + The default is 10. diff --git a/src/config/pool_config_variables.c b/src/config/pool_config_variables.c index 5d9b63928..aaf685f44 100644 --- a/src/config/pool_config_variables.c +++ b/src/config/pool_config_variables.c @@ -1924,7 +1924,7 @@ static struct config_int ConfigureNamesInt[] = CONFIG_VAR_TYPE_INT, false, GUC_UNIT_S }, &g_pool_config.sr_check_period, - 0, + 10, 0, INT_MAX, NULL, NULL, NULL }, -- 2.39.5