Fix authentication failure after updating pool_passwd and reload.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 13 Nov 2024 06:28:06 +0000 (15:28 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 13 Nov 2024 06:28:06 +0000 (15:28 +0900)
commit06f4f0894712cb4fa5f228e4959c7af8f1dfe9f2
treebc3249f449ffa01a2563789c1982298ca02f697c
parent2c9c23629d567c572b83cede0bc42a9877effeff
Fix authentication failure after updating pool_passwd and reload.

If pool_hba.conf is disabled, updating pool_passwd was not recognized
by pgpool child process even if pgpool reload was performed.  The
reload processing function check_config_reload() mistakenly assumed
that reopening pool_passwd was only necessary when enable_pool_hba is
on.

Backpatch-through: v4.1
Discussion: https://www.pgpool.net/pipermail/pgpool-general/2024-November/001944.html
src/protocol/child.c