[pgpool-committers: 6517] pgpool: Suppress unnecessary error message when there's no standby serv
Tatsuo Ishii
ishii at sraoss.co.jp
Mon Feb 10 19:17:47 JST 2020
Suppress unnecessary error message when there's no standby server.
Even of there's no standby server anymore, worker process keeps on
checking result row from pg_stat_replication(). If
pg_stat_replication() returns no row, the worker process complained it
every sr_check_period and the log was flooded by them. To prevent this
get_query_result() is changed to return -2 if there's no row in the
result. Also the error message in get_query_result() is downgraded
from LOG to DEBUG1. If -2 is returned and number of active standby is
less than 1 the caller does not complain any more.
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=6222cb3ad9e29e9d77b8c39ed79322e760fe73e3
Modified Files
--------------
src/streaming_replication/pool_worker_child.c | 16 ++++++++++------
1 file changed, 10 insertions(+), 6 deletions(-)
More information about the pgpool-committers
mailing list