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:27:34 +0000 (21:27 +0900)
commitd067a8b14c607e54e55539356cb14121826f1f2b
tree424583ff8a30d5790f84553f361e3ab7f7ea1493
parent0da3753b2350e85987570e6e55e6b6cc7cf5e1e2
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