[pgpool-committers: 3519] pgpool: Fix the case when all backends are down then 1 node attached.
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
Per bug 248.
src/main/pgpool_main.c | 32 +++++++++++++++++++++++++++++---
1 file changed, 29 insertions(+), 3 deletions(-)
More information about the pgpool-committers