Change compile time default of log_standby_delay from 'none' to 'if_over_threshold'.
authorTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 8 Oct 2021 01:55:53 +0000 (10:55 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Fri, 8 Oct 2021 01:55:53 +0000 (10:55 +0900)
Before the compile time default was 'none' but the default value of
sample pgpool.conf was 'if_over_threshold'. Since 'if_over_threshold'
is more useful for most users, change the compile time default to
'if_over_threshold' as well.

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2021-October/004035.html

doc.ja/src/sgml/stream-check.sgml
doc/src/sgml/stream-check.sgml
src/config/pool_config_variables.c

index 3018aa2d64a22c4c9eccf7576c2b5c6fb8e05244..665e36fd8c3ddc1bf123eb7763ac14d148df7912 100644 (file)
        <!--
        <entry>Never log the standby delay</entry>
        -->
-       <entry>スタンバイの遅延はログ出力されない (デフォルト)</entry>
+       <entry>スタンバイの遅延はログ出力されない</entry>
        </row>
 
        <row>
        <!--
        <entry>Only log the standby delay, when it exceeds <xref linkend="guc-delay-threshold"> value</entry>
        -->
-       <entry><xref linkend="guc-delay-threshold">の値を超えた時だけ、スタンバイの遅延がログ出力される</entry>
+       <entry><xref linkend="guc-delay-threshold">の値を超えた時だけ、スタンバイの遅延がログ出力される(デフォルト)</entry>
        </row>
       </tbody>
      </tgroup>
index 76eed6799924e42d357a26803bfea1b3e686c4aa..c54035d061812ffa0c53157f440e8e43c7ce0373 100644 (file)
       <tbody>
        <row>
        <entry><literal>'none'</literal></entry>
-       <entry>Never log the standby delay (the default)</entry>
+       <entry>Never log the standby delay</entry>
        </row>
 
        <row>
 
        <row>
        <entry><literal>'if_over_threshold'</literal></entry>
-       <entry>Only log the standby delay, when it exceeds <xref linkend="guc-delay-threshold"> value</entry>
+       <entry>Only log the standby delay, when it exceeds <xref linkend="guc-delay-threshold"> value (the default)</entry>
        </row>
       </tbody>
      </tgroup>
index 4b16c85eb7cb95aa29b25bdb8a3af609859dc1c3..5d9b639288cd8836a76f3e822640c67b8cf6458e 100644 (file)
@@ -2195,7 +2195,7 @@ static struct config_enum ConfigureNamesEnum[] =
                        CONFIG_VAR_TYPE_ENUM, false, 0
                },
                (int *) &g_pool_config.log_standby_delay,
-               LSD_NONE,
+               LSD_OVER_THRESHOLD,
                log_standby_delay_options,
                NULL, NULL, NULL, NULL
        },