Fix sr check and health check to reopen pool_passwd upon reload.
authorTatsuo Ishii <ishii@postgresql.org>
Tue, 4 Mar 2025 12:27:34 +0000 (21:27 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Tue, 4 Mar 2025 12:39:27 +0000 (21:39 +0900)
commit28dead30db582869d6339509aaa2fe0b3fc7ff9d
tree2e7325c62665f7894d7a11ed7b329f1b653d60df
parentdb35254bca4bcfd84cc69a57ea710ab22a43942a
Fix sr check and health check to reopen pool_passwd upon reload.

The streaming replication check and health check process forgot to
reopen pool_passwd upon reload.  If sr_check_passwd or
health_check_passwd is empty string, the password is obtained from
pool_passwd. Thus those process read outdated content of pool_passwd
upon reload.

Backpatch-through: v4.2
src/main/health_check.c
src/streaming_replication/pool_worker_child.c