[pgpool-committers: 3518] pgpool: Fix the case when all backends are down then 1 node attached.

Tatsuo Ishii ishii at postgresql.org
Wed Sep 21 16:28:25 JST 2016


Fix the case when all backends are down then 1 node attached.

When all backends are down, no connection is accepted. Then 1
PostgreSQL becomes up, and attach the node using pcp_attach_node. It
successfully finishes. However, when a new connection arrives, still
the connection is refused because pgpool child process looks into the
cached status, in which the recovered node is still in down status if
mode is streaming replication mode (native replication and other modes
are fine). Solution is, if all nodes are down, force to restart all
pgpool child.

Per bug 248.

Branch
------
V3_3_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=498643fc69a9614ca19401d76bf68c3df7f3b59f

Modified Files
--------------
main.c | 31 ++++++++++++++++++++++++++++---
1 file changed, 28 insertions(+), 3 deletions(-)



More information about the pgpool-committers mailing list