summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTatsuo Ishii2024-06-14 00:30:46 +0000
committerTatsuo Ishii2024-06-14 02:03:45 +0000
commit3215cfe8692de3ecb8612673dab36d9071e4d92c (patch)
treeffada70d09093321b2630d7c5cd6dc6403751f8e /src
parenta9d1df446893d88fc8476ca2f0a07ebb3efb5739 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/utils/pool_process_reporting.c4
1 files changed, 1 insertions, 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);