[pgpool-committers: 8846] pgpool: Add trusted_server_command parameter

Takuma Hoshiai takuma.hoshiai at gmail.com
Fri Nov 4 11:08:32 JST 2022


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.

Branch
------
master

Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=b7bcf0d7b833559962cde8c5f4dfe3f5c07dda3c

Modified Files
--------------
doc.ja/src/sgml/watchdog.sgml                      | 47 +++++++++--
doc/src/sgml/watchdog.sgml                         | 30 +++++--
src/config/pool_config_variables.c                 | 10 +++
src/include/pool_config.h                          |  1 +
src/include/watchdog/wd_utils.h                    |  3 +-
src/sample/pgpool.conf.sample-stream               | 12 ++-
.../regression/tests/036.trusted_servers/test.sh   | 75 +++++++++++++++++
src/utils/pool_process_reporting.c                 |  5 ++
src/watchdog/wd_lifecheck.c                        | 16 ++--
src/watchdog/wd_ping.c                             | 95 +++++++++++++++++++++-
10 files changed, 267 insertions(+), 27 deletions(-)



More information about the pgpool-committers mailing list