[pgpool-committers: 3519] 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_5_STABLE

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

Modified Files
--------------
src/main/pgpool_main.c | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)



More information about the pgpool-committers mailing list