Fix the default values.
authorBo Peng <pengbo@sraoss.co.jp>
Mon, 26 Feb 2024 10:43:10 +0000 (19:43 +0900)
committerBo Peng <pengbo@sraoss.co.jp>
Mon, 26 Feb 2024 10:43:10 +0000 (19:43 +0900)
Fixed the default values of the following parameters:
- recovery_user
- failover_on_backend_shutdown
- insert_lock

src/config/pool_config_variables.c
src/sample/pgpool.conf.sample-stream

index 639cf2250db9b7b56f37d0309cdd3b92013fd03c..995fd257d9e5b850af13c0572a8c7d0148e49e42 100644 (file)
@@ -590,7 +590,7 @@ static struct config_bool ConfigureNamesBool[] =
                        CONFIG_VAR_TYPE_BOOL, false, 0
                },
                &g_pool_config.failover_on_backend_shutdown,
-               true,
+               false,
                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
        },
 
index e7b5b1c53e041bfc2b86e69a631fab37d7cb32dd..0833605ad84621083f3f6bb4f6cd910952df36cd 100644 (file)
@@ -377,7 +377,7 @@ backend_clustering_mode = 'streaming_replication'
                                    # replicate_select is higher priority than
                                    # load_balance_mode.
 
-#insert_lock = off
+#insert_lock = on
                                    # Automatically locks a dummy row or a table
                                    # with INSERT statements to keep SERIAL data
                                    # consistency
@@ -635,7 +635,7 @@ backend_clustering_mode = 'streaming_replication'
 
 #failover_on_backend_shutdown = off
                                    # Initiates failover when backend is shutdown,
-                                  # or backend process is killed.
+                                   # or backend process is killed.
                                    # If set to off, pgpool will report an
                                    # error and disconnect the session.
 
@@ -709,7 +709,7 @@ backend_clustering_mode = 'streaming_replication'
 
 # - Watchdog communication Settings -
 
-hostname0 = ''
+#hostname0 = ''
                                     # Host name or IP address of pgpool node
                                     # for watchdog connection
                                     # (change requires restart)