| 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:38 |
| Message-ID: | E1vd5Bx-00FoFA-2U@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_7_STABLE
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=2218b5e56fe4b0df884d7f522c41109891e165f4
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:43 | pgpool: Fix health check process to not start. |
| Previous Message | Tatsuo Ishii | 2026-01-06 11:25:32 | pgpool: Fix health check process to not start. |