[pgpool-committers: 93] pgpool: Allow to have private cache of master node id. This is neccesar

Tatsuo Ishii ishii at postgresql.org
Sat Mar 24 12:33:45 JST 2012

Allow to have private cache of master node id. This is neccesary for
MASTER_CONNECTION macro and friends because when master goes down it
will immediately update the info on shared memory, which cause running
pgpool child to look into NULL pointer because the process does not
connect to the new master yet. The private cache returns the old
master node id and will avoid the situation. Per bug report
backport from:

Fix pool_start_query() so that it uses my_master_node_id for initial
virtual_master_node_id. Real master node could be changed while pgpool
is running in streaming replication mode. Before it assigned
REAL_MASTER_NODE_ID, which could have no connections after fail over
and cause segafult because there's no connection to it.
backport from:

Fix pool_setall_node_to_be_sent() to use private_backend_status.  It
is possible that while processing, the node is not usable any more.
backport from:



Modified Files
child.c              |    6 ++++--
main.c               |    1 +
pool.h               |    3 ++-
pool_query_context.c |   14 +++++++++-----
4 files changed, 16 insertions(+), 8 deletions(-)

More information about the pgpool-committers mailing list