| From: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
|---|---|
| To: | pgpool-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgpool: Fix health check process to not start. |
| Date: | 2026-01-06 11:25:21 |
| Message-ID: | E1vd5Bg-00FoCv-2p@gothos.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgpool-committers |
Fix health check process to not start.
Previously pgpool_main() did not start a health check process if the
backend node is down. This prevented auto_failback from working.
Pgpool reads status from pool_status file when "-D" option is not
present. If the status recorded in the file is "down", pgpool will
not start health check process for the node. Since auto_failback is
invoked from health check process, this means that auto_failback does
not work for the backend node.
Fix is, unconditionally start health check process.
Author: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Reported-by: Meng Feilong
Discussion: https://github.com/pgpool/pgpool2/issues/140
Backpatch-through: v4.3
Branch
------
V4_4_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=045c5a0b61cdf16681b5e8f213ecf4982b1a630d
Modified Files
--------------
src/main/pgpool_main.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tatsuo Ishii | 2026-01-06 11:25:26 | pgpool: Fix health check process to not start. |
| Previous Message | Tatsuo Ishii | 2026-01-06 06:55:50 | Re: pgpool: Feature: allow to specify external command to retrieve replicat |