Change log_pcp_processes default to off.
authorTatsuo Ishii <ishii@postgresql.org>
Fri, 15 Aug 2025 04:40:32 +0000 (13:40 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Fri, 15 Aug 2025 06:15:30 +0000 (15:15 +0900)
Previously log_pcp_processes default was on, and it could produce
excessive log lines if admins use pcp commands frequently to monitor
pgpool status.  Also the log is kind of debugging message, thus it is
best to change its default value to off.

Discussion: https://www.postgresql.org/message-id/20250815.111100.2261166502134199972.ishii%40postgresql.org
Backpatch-through: master only

doc.ja/src/sgml/connection-pooling.sgml
doc/src/sgml/connection-pooling.sgml
src/config/pool_config_variables.c
src/sample/pgpool.conf.sample-stream

index e9c8253c7131173bd9a76017cc95215409927009..07af0fcd40d6ebd17ad8ad2c0a964c008cdb2749 100644 (file)
@@ -1356,7 +1356,7 @@ local0.*    /var/log/pgpool.log
       fork and exit status. Default is on.
       -->
       onに設定されている場合、PCPプロセスの正常なforkあるいはexitした状態をログに出力します。
-      デフォルトはonです。
+      デフォルトはoffです。
      </para>
      <para>
       <!--
index f6ebb773ca3f8211ceb4e68235fe195a5dc1d520..982ab1870b6aaae3bb4b017c28db2c3acfa1d0b2 100644 (file)
     <listitem>
      <para>
       Setting to on, enable logging about normal PCP Process
-      fork and exit status. Default is on.
+      fork and exit status. Default is off.
      </para>
      <para>
       This parameter can be changed by reloading the <productname>Pgpool-II</> configurations.
index 31f42caa9e22bd67909435f2988f835fe4e44995..d7d5fe49fc2b326e3d5bbfe3dae5b5a1caa77d51 100644 (file)
@@ -480,7 +480,7 @@ static struct config_bool ConfigureNamesBool[] =
                        CONFIG_VAR_TYPE_BOOL, false, 0
                },
                &g_pool_config.log_pcp_processes,
-               true,
+               false,
                NULL, NULL, NULL
        },
 
index bec929dcd947b0add74c4ac3f39a3b23d1ece3ba..a7eb594c90fa3b027fe93855cc8f6055c87ccf3b 100644 (file)
@@ -244,7 +244,7 @@ backend_clustering_mode = streaming_replication
                                    # Log connections
 #log_disconnections = off
                                    # Log disconnections
-#log_pcp_processes = on
+#log_pcp_processes = off
                                    # Log PCP Processes
 #log_hostname = off
                                    # Hostname will be shown in ps status