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:44:55 +0000 (15:44 +0900)
commit4e379c90ca870cec847808de1b484d6f67847f7a
tree1e752cba484bddb92b68e9c0f936693a0607e557
parentbfa5af1bcca77de8e67576ee623a8cc9e4741fd3
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