From 9488d9f44a4f0e6d2fc9a0e3f313b075c6663938 Mon Sep 17 00:00:00 2001 From: Tatsuo Ishii Date: Fri, 14 Jun 2024 09:30:46 +0900 Subject: [PATCH] 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 23f62cdc7..40867fb74 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 @@ -1812,8 +1812,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); -- 2.39.5