Add new config parameter "failover_on_backend_shutdown".
authorTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 22 Sep 2021 00:23:02 +0000 (09:23 +0900)
committerTatsuo Ishii <ishii@sraoss.co.jp>
Wed, 22 Sep 2021 00:37:36 +0000 (09:37 +0900)
commit10ef9092e2e6a40650fe304270cea79ed20ece17
tree4085d819dd458d861b7fac68998b1102a1e609c2
parenta874078de54f63f958fa622295e06508b99a4a60
Add new config parameter "failover_on_backend_shutdown".

If set to on, admin shutdown triggers failover (existing behavior).
If set to off, admin shutdown does not trigger failover (new
behavior), and is useful to completely avoid unwanted failover caused
by pg_terminate_backend() and SIGTERM signal sent to the backend
process.

Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2021-August/003999.html
12 files changed:
doc.ja/src/sgml/failover.sgml
doc/src/sgml/failover.sgml
src/config/pool_config_variables.c
src/include/pool_config.h
src/protocol/pool_process_query.c
src/sample/pgpool.conf.sample-logical
src/sample/pgpool.conf.sample-raw
src/sample/pgpool.conf.sample-replication
src/sample/pgpool.conf.sample-slony
src/sample/pgpool.conf.sample-snapshot
src/sample/pgpool.conf.sample-stream
src/utils/pool_process_reporting.c