pgpool: Fix watchdog to print inappropriate NOTICE message.

From: Tatsuo Ishii <ishii(at)postgresql(dot)org>
To: pgpool-committers(at)lists(dot)postgresql(dot)org
Subject: pgpool: Fix watchdog to print inappropriate NOTICE message.
Date: 2025-07-25 05:07:18
Message-ID: E1ufAeL-00Bqie-2B@gothos.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgpool-committers

Fix watchdog to print inappropriate NOTICE message.

read_ipc_socket_and_process() printed a notice message every time when
it wrote commands to IPC socket even if it was successful. Fix this to
print the notice message only when the write failed.

The reason why this bug was not recognized is, the message appears
only when log_min_messages is set to notice or higher.

Discussion: https://github.com/pgpool/pgpool2/issues/121
Backpatch-through: v4.2

Branch
------
V4_5_STABLE

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

Modified Files
--------------
src/watchdog/watchdog.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)

Browse pgpool-committers by date

  From Date Subject
Next Message Tatsuo Ishii 2025-07-25 05:07:24 pgpool: Fix watchdog to print inappropriate NOTICE message.
Previous Message Tatsuo Ishii 2025-07-25 05:07:12 pgpool: Fix watchdog to print inappropriate NOTICE message.