[pgpool-committers: 6516] pgpool: Suppress unnecessary error message when there's no standby serv

Tatsuo Ishii ishii at sraoss.co.jp
Mon Feb 10 19:17:33 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
------
V4_1_STABLE

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

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