[pgpool-committers: 3517] 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
------
master

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

Modified Files
--------------
src/main/pgpool_main.c | 30 ++++++++++++++++++++++++++++--
1 file changed, 28 insertions(+), 2 deletions(-)



More information about the pgpool-committers mailing list