pgpool2.git / summary / log / commit / refs
commit f647c4a372ea2c2cfae80e4e60f209e236fe41ec
Author: Tatsuo Ishii <ishii@postgresql.org>
Date: Thu Mar 05 01:08:44 2026 +0000
Downgrade debug log used in pcp_proc_info and show pool_pools etc.
706ca859c64c50a47e6dc2ff31f6be22c6ce5a13 accidentaly added elog(LOG,..):
2026-03-05 08:26:25.507: psql pid 1044939: LOCATION: pool_process_reporting.c:1706
2026-03-05 08:26:25.507: psql pid 1044939: LOG: pi->node_ids[0]:1 pi->node_ids[1]:0
The log appears when pcp_proc_info, show pool_pools and pgpool_adm's
pcp_proc_info are executed. It is a debug log. So Down grade it to
DEBUG5.
Backpatch-through: v4.7
src/utils/pool_process_reporting.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/utils/pool_process_reporting.c b/src/utils/pool_process_reporting.c
index 39087bc47..cb2430f63 100644
--- a/src/utils/pool_process_reporting.c
+++ b/src/utils/pool_process_reporting.c
@@ -5,7 +5,7 @@
* pgpool: a language independent connection pool server for PostgreSQL
* written by Tatsuo Ishii
*
- * Copyright (c) 2003-2025 PgPool Global Development Group
+ * Copyright (c) 2003-2026 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@ -1697,13 +1697,13 @@ get_pools(int *nrows)
StrNCpy(pools[lines].client_port, pi->client_port, NI_MAXSERV);
/*
- * If this the statement was sent to backend id report the
+ * If a statement was sent to this backend id, report the
* statement.
*/
if (is_pi_set(pi->node_ids, backend_id))
{
StrNCpy(pools[lines].statement, pi->statement, MAXSTMTLEN);
- elog(LOG, "pi->node_ids[0]:%ld pi->node_ids[1]:%ld",
+ elog(DEBUG5, "pi->node_ids[0]:%ld pi->node_ids[1]:%ld",
pi->node_ids[0], pi->node_ids[1]);
}
lines++;
[parent: a95531dcd71b]