Add trusted_server_command parameter
authorTakuma Hoshiai <takuma.hoshiai@gmail.com>
Fri, 4 Nov 2022 02:07:09 +0000 (11:07 +0900)
committerTakuma Hoshiai <takuma.hoshiai@gmail.com>
Fri, 4 Nov 2022 02:07:09 +0000 (11:07 +0900)
commitb7bcf0d7b833559962cde8c5f4dfe3f5c07dda3c
tree368a2f040caada362b6e3eb4ae446a2738e94929
parent33f94117b5ce4b94cdbfa42ae5d2c1c2a31fac4b
Add trusted_server_command parameter

This patch be able to specify a command that is used by trusted_servers
for checking up stream connection. Previously, ping command was only used,
and it was hard coded.

Default is 'ping -q -c3 %h' which means same as before.
doc.ja/src/sgml/watchdog.sgml
doc/src/sgml/watchdog.sgml
src/config/pool_config_variables.c
src/include/pool_config.h
src/include/watchdog/wd_utils.h
src/sample/pgpool.conf.sample-stream
src/test/regression/tests/036.trusted_servers/test.sh [new file with mode: 0755]
src/utils/pool_process_reporting.c
src/watchdog/wd_lifecheck.c
src/watchdog/wd_ping.c