Change the default value of *_user parameters to ''.
authorBo Peng <pengbo@sraoss.co.jp>
Mon, 5 Aug 2024 06:52:53 +0000 (15:52 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Mon, 5 Aug 2024 06:52:53 +0000 (15:52 +0900)
Currently the default values of  *_user parameters are "nobody".
This commit changes the default value of *_user parameters to ''.

doc.ja/src/sgml/healthcheck.sgml
doc.ja/src/sgml/online-recovery.sgml
doc.ja/src/sgml/stream-check.sgml
doc.ja/src/sgml/watchdog.sgml
doc/src/sgml/healthcheck.sgml
doc/src/sgml/online-recovery.sgml
doc/src/sgml/stream-check.sgml
doc/src/sgml/watchdog.sgml
src/config/pool_config_variables.c
src/sample/pgpool.conf.sample-stream

index 1f143ddb3ca65765a14780263c63f230c1d7e41c..736d0d1a9b38365d71364ae7dd4854ca21b8c5d2 100644 (file)
     <para>
      <!--
      Specifies the <productname>PostgreSQL</> user name to perform health check.
+     Default is <literal>''</literal>(empty).
      The same user must exist in all the <productname>PostgreSQL</> backends.
      Otherwise, health check results in an error.
      -->
      ヘルスチェックを行う<productname>PostgreSQL</>ユーザ名を指定します。
+     デフォルトは<literal>''</literal>(空文字)です。
      同じユーザ名が全ての<productname>PostgreSQL</>バックエンドに存在していなければなりません。
      さもないと、ヘルスチェックがエラーとなります。
     </para>
index a214db8941a214f46e8134fe23309f9dce9ebe0e..aa0617b1bccc2a2a2cc3176ea2cc0456ae9bd860 100644 (file)
     <para>
      <!--
      Specifies the <productname>PostgreSQL</> user name to perform online recovery.
+     Default is <literal>''</literal>(empty).
      <varname>recovery_user</varname> must specify superuser,
      because <function>pgpool_recovery</function> function is executed
      during online recovery, require superuser privilege.
      -->
      オンラインリカバリを行うための<productname>PostgreSQL</>ユーザ名です。
+     デフォルトは<literal>''</literal>(空文字)です。
      オンラインリカバリで実行される<function>pgpool_recovery</function>関数はPostgreSQLのスーパーユーザ権限が必要なため、<varname>recovery_user</varname>にスーパーユーザを指定しなければなりません。
     </para>
     <para>
index 70008ab5e31de43fc19c795877f5672c55f20b62..ea064e132a6eeec424c19a3179426d4feaf1f4c7 100644 (file)
     <para>
      <!--
      Specifies the <productname>PostgreSQL</> user name to perform streaming replication check.
+     Default is <literal>''</literal>(empty).
      The user must have LOGIN privilege and exist on all the
      <productname>PostgreSQL</> backends.
      -->
      ストリーミングレプリケーションのチェックを行う<productname>PostgreSQL</>ユーザ名を指定します。
+     デフォルトは<literal>''</literal>(空文字)です。
      このユーザはLOGIN権限を持ち、すべてのバックエンドに存在しなければなりません。
     </para>
     <para>
index 9c311294b0725ceac2caec270d58fededcba9f32..b989385c05b1b534658330e9cf9c578173b3437a 100644 (file)
@@ -1901,10 +1901,10 @@ heartbeat_device2 = ''
       <!--
       Specifies the user name for the connection used for the life
       check of remote <productname>Pgpool-II</productname>.
-      Default is <literal>"nobody"</literal>.
+      Default is <literal>''</literal>(empty).
       -->
       リモートの<productname>Pgpool-II</productname>の死活監視用の接続先のユーザ名です。
-      デフォルトは<literal>'nobody'</literal>です。
+      デフォルトは<literal>''</literal>(空文字)です。
      </para>
      <para>
       <!--
index 86d8b4c699db757c90686a6ee1b4399d67f1ad53..b002863806bac96685dc71baa2e5867935f74324 100644 (file)
@@ -98,6 +98,7 @@
    <listitem>
     <para>
      Specifies the <productname>PostgreSQL</> user name to perform health check.
+     Default is <literal>''</literal>(empty).
      The same user must exist in all the <productname>PostgreSQL</> backends.
      Otherwise, health check causes an error.
     </para>
index 38a9611c011423fdb6a54d88e161bbbc177766d7..55092a744c5573e26ba9066fd2bc947a9a97ad8e 100644 (file)
    <listitem>
     <para>
      Specifies the <productname>PostgreSQL</> user name to perform online recovery.
+     Default is <literal>''</literal>(empty).
+     <varname>recovery_user</varname> must specify superuser,
+     because <function>pgpool_recovery</function> function is executed
+     during online recovery, require superuser privilege.
     </para>
     <para>
      This parameter can be changed by reloading the <productname>Pgpool-II</> configurations.
index c86c9322c74ae16f78ddd30fe31a5c5e90111b78..e44dae93fa7d256b657e2a07caa40d0edf784375 100644 (file)
@@ -49,6 +49,7 @@
 
     <para>
      Specifies the <productname>PostgreSQL</> user name to perform streaming replication check.
+     Default is <literal>''</literal>(empty).
      The user must have LOGIN privilege and exist on all the
      <productname>PostgreSQL</> backends.
     </para>
index e732c6d23f1ab79b0302a266828a1828b46e06b6..5ee8d12af3e649dcab313c3a9048aa58d2c90241 100644 (file)
@@ -1327,7 +1327,7 @@ pgpool_port2 = 9999
      <para>
       Specifies the user name for the connection used for the life
       check of remote <productname>Pgpool-II</productname>.
-      Default is <literal>"nobody"</literal>.
+      Default is <literal>''</literal>(empty).
      </para>
      <para>
       <varname>wd_lifecheck_user</varname> is only applicable if the
index 111efa579d4592e5679eb5a2980d506457d86911..770cfc24e2109b79636a1e683560bf77f90a653f 100644 (file)
@@ -946,7 +946,7 @@ static struct config_string ConfigureNamesString[] =
                        CONFIG_VAR_TYPE_STRING, false, 0
                },
                &g_pool_config.sr_check_user,
-               "nobody",
+               "",
                NULL, NULL, NULL, NULL
        },
 
@@ -1006,7 +1006,7 @@ static struct config_string ConfigureNamesString[] =
                        CONFIG_VAR_TYPE_STRING, false, 0
                },
                &g_pool_config.recovery_user,
-               "nobody",
+               "",
                NULL, NULL, NULL, NULL
        },
 
@@ -1196,7 +1196,7 @@ static struct config_string ConfigureNamesString[] =
                        CONFIG_VAR_TYPE_STRING, false, 0
                },
                &g_pool_config.wd_lifecheck_user,
-               "nobody",
+               "",
                NULL, NULL, NULL, NULL
        },
 
@@ -1852,14 +1852,14 @@ static struct config_string_array ConfigureNamesStringArray[] =
                        CONFIG_VAR_TYPE_STRING_ARRAY, true, 0, MAX_NUM_BACKENDS
                },
                NULL,
-               "nobody",
+               "",
                {
                        {"health_check_user", CFGCXT_RELOAD, HEALTH_CHECK_CONFIG,
                                "Default PostgreSQL user name to perform health check on node for which health_check_user[node-id] is not specified.",
                                CONFIG_VAR_TYPE_STRING, false, DEFAULT_FOR_NO_VALUE_ARRAY_VAR
                        },
                        &g_pool_config.health_check_user,
-                       "nobody",
+                       "",
                        NULL, NULL, NULL, NULL
                },
                HealthCheckUserAssignFunc, NULL, HealthCheckUserShowFunc, BackendSlotEmptyCheckFunc
index f329dcb32ca6d647ddfe984f12ceab3b5f8bb852..b2f672759f5d3a0cdf05880e8cd557df2262eb18 100644 (file)
@@ -503,7 +503,7 @@ backend_clustering_mode = 'streaming_replication'
 #sr_check_period = 10
                                    # Streaming replication check period
                                    # Default is 10s.
-#sr_check_user = 'nobody'
+#sr_check_user = ''
                                    # Streaming replication check user
                                    # This is necessary even if you disable streaming
                                    # replication delay check by sr_check_period = 0
@@ -558,7 +558,7 @@ backend_clustering_mode = 'streaming_replication'
 #health_check_timeout = 20
                                    # Health check timeout
                                    # 0 means no timeout
-#health_check_user = 'nobody'
+#health_check_user = ''
                                    # Health check user
 #health_check_password = ''
                                    # Password for health check user
@@ -583,7 +583,7 @@ backend_clustering_mode = 'streaming_replication'
 #------------------------------------------------------------------------------
 #health_check_period0 = 0
 #health_check_timeout0 = 20
-#health_check_user0 = 'nobody'
+#health_check_user0 = ''
 #health_check_password0 = ''
 #health_check_database0 = ''
 #health_check_max_retries0 = 0
@@ -655,7 +655,7 @@ backend_clustering_mode = 'streaming_replication'
 # ONLINE RECOVERY
 #------------------------------------------------------------------------------
 
-#recovery_user = 'nobody'
+#recovery_user = ''
                                    # Online recovery user
 #recovery_password = ''
                                    # Online recovery password
@@ -900,7 +900,7 @@ backend_clustering_mode = 'streaming_replication'
 #wd_lifecheck_dbname = 'template1'
                                     # Database name connected for lifecheck
                                     # (change requires restart)
-#wd_lifecheck_user = 'nobody'
+#wd_lifecheck_user = ''
                                     # watchdog user monitoring pgpools in lifecheck
                                     # (change requires restart)
 #wd_lifecheck_password = ''