[pgpool-committers: 4647] pgpool: First cut of primary server checking.

Tatsuo Ishii ishii at postgresql.org
Mon Apr 9 17:47:04 JST 2018

First cut of primary server checking.

For now followings are implemented:

- Check all backend nodes starting node 0.

- If primary nodes appear twice or more, the second one or after are
  assumed invalid.

- Such invalid node will be degenerated at the next convenient
  time. Currently such timing is at the start up of Pgpool-II. This is
  apparently insufficient and should be improved later.

- Verify primary nodes using pg_stat_wal_receiver.

- More chances to verify node status. Maybe in the same timing as
  streaming replication delay checking?

- Add new GUCs to control of this feature.



Modified Files
src/include/pool.h                            |  16 +-
src/main/pgpool_main.c                        | 201 +++++++++++++++-----------
src/streaming_replication/pool_worker_child.c |  61 ++++----
3 files changed, 166 insertions(+), 112 deletions(-)

More information about the pgpool-committers mailing list