pgpool: Fix memqcache_stats_start_time shown in "show pool_status".

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgpool-committers(at)lists(dot)postgresql(dot)org
Subject: pgpool: Fix memqcache_stats_start_time shown in "show pool_status".
Date: 2025-12-02 10:53:13
Message-ID: E1vQO0O-0023Ju-1u@gothos.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-committers

Fix memqcache_stats_start_time shown in "show pool_status".

get_config() uses ctime() to generate printable form of
memqcache_stats_start_time. But it did not take into account that
ctime() adds newline at the end of result. As a result, not only the
output of memqcache_stats_start_time was with unnecessary newline but
next row printed empty items.

Author: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Discussion: https://www.postgresql.org/message-id/20251130.102712.131456481338876013.ishii%40postgresql.org
Backpatch-through: v4.3

Branch
------
V4_3_STABLE

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=6dcd79a4addfc02ca0483e6f6f1edf9a99551c97

Modified Files
--------------
src/utils/pool_process_reporting.c | 2 ++
1 file changed, 2 insertions(+)

Browse pgpool-committers by date

  From Date Subject
Next Message Tatsuo Ishii 2025-12-02 10:53:40 pgpool: Fix memqcache_stats_start_time shown in "show pool_status".
Previous Message pgpool-committers-owner 2025-11-28 04:22:19 pgpool: Tag refs/tags/V4_7_0_BETA1_RPM was created