Fix too many log lines produced by streaming replication check.
authorTatsuo Ishii <ishii@postgresql.org>
Mon, 10 Feb 2025 09:28:51 +0000 (18:28 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Mon, 10 Feb 2025 09:43:18 +0000 (18:43 +0900)
commit7f6d9a9259c03c0acb55a655e0b4974233cd1737
treeac8c1f7f9c51fd0f3934ee4e19778a1973d794a3
parentfd3965a177b960f337304f9b8b0ef1e610bc7d08
Fix too many log lines produced by streaming replication check.

The process started to call
get_pg_backend_status_from_leader_wd_node() which unconditionally emits
log message:

LOG:  received the get data request from local pgpool-II on IPC interface

LOG:  get data request from local pgpool-II node received on IPC interface is forwarded to leader watchdog node

every sr_check_period seconds, which is annoying. To fix this, an elog
line in process_IPC_data_request_from_leader() is downgraded from LOG
to DEBUG1.

Reported-by: Bo Peng.
src/watchdog/watchdog.c