pgpool2.git / summary / log / commit / refs
commit 3215cfe8692de3ecb8612673dab36d9071e4d92c
Author: Tatsuo Ishii <ishii@sraoss.co.jp>
Date: Fri Jun 14 00:30:46 2024 +0000
Fix "show pool_processes" to not show row description twice.
processes_reporting() accidentaly called both send_row_description()
and send_row_description_and_data_rows().
Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2024-June/004472.html
[pgpool-hackers: 4471] [PATCH] printing empty row first in query "show pool_process"
Author: Kwangwon Seo
Back patch to V4.2 where the problem started.
src/utils/pool_process_reporting.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/utils/pool_process_reporting.c b/src/utils/pool_process_reporting.c
index 9ef39b9bd..a431d0321 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-2023 PgPool Global Development Group
+ * Copyright (c) 2003-2024 PgPool Global Development Group
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose and without fee is hereby
@@ -1841,8 +1841,6 @@ processes_reporting(POOL_CONNECTION * frontend, POOL_CONNECTION_POOL * backend)
num_fields = sizeof(field_names) / sizeof(char *);
processes = get_processes(&nrows);
- send_row_description(frontend, backend, num_fields, field_names);
-
send_row_description_and_data_rows(frontend, backend, num_fields, field_names, offsettbl,
(char *)processes, sizeof(POOL_REPORT_PROCESSES), nrows);
[parent: a9d1df446893]