Fix memqcache_stats_start_time shown in "show pool_status". master
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 2 Dec 2025 10:26:55 +0000 (19:26 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 2 Dec 2025 10:26:55 +0000 (19:26 +0900)
commit331a3b37b1141adeb3b9d565e120e7a42d2db903
tree3b951cdfe470ee29c184786f351383b75c423383
parentadbd71a331fce4204ad7f12f1116758ae7d506b7
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@postgresql.org>
Discussion: https://www.postgresql.org/message-id/20251130.102712.131456481338876013.ishii%40postgresql.org
Backpatch-through: v4.3
src/utils/pool_process_reporting.c