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:44:18 +0000 (19:44 +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 a6405b0314f8f6eee937649538b6dd531172273a..a9f0862dac6e82b1fa6f3f0934cb60a552a0d109 100644 (file)
@@ -579,7 +579,7 @@ static struct config_bool ConfigureNamesBool[] =
                        CONFIG_VAR_TYPE_BOOL, false, 0
                },
                &g_pool_config.failover_on_backend_shutdown,
-               true,
+               false,
                NULL, NULL, NULL
        },
 
@@ -982,7 +982,7 @@ static struct config_string ConfigureNamesString[] =
                        CONFIG_VAR_TYPE_STRING, false, 0
                },
                &g_pool_config.recovery_user,
-               "",
+               "nobody",
                NULL, NULL, NULL, NULL
        },
 
index b238e5712f35ccbab3015753e378a2ad86afff19..8b326fd13587c38b1d5edf906c4bf321fede77b6 100644 (file)
@@ -373,7 +373,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
@@ -626,7 +626,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.