[pgpool-committers: 9557] pgpool: Feature: allow to set delay_threshold_by_time in milliseconds.
Tatsuo Ishii
ishii at sraoss.co.jp
Sat Aug 19 18:47:06 JST 2023
Feature: allow to set delay_threshold_by_time in milliseconds.
Previously it was allowed only in seconds. Also put some
refactoring. Create new function "check_replication_delay" which
checks the replication delay and returns 0, -1 or -2, depending on "no
delay", "delayed (delay_threshold_by_time)" or "delayed
(delay_threshold)" accordingly. This should simplify the lengthy
if-statement to check the replication delay.
Discussion: https://www.pgpool.net/pipermail/pgpool-hackers/2023-August/004372.html
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=2efc59eeeff04ca2bb986c9591a249d8b64188f2
Modified Files
--------------
doc.ja/src/sgml/stream-check.sgml | 11 +++--
doc/src/sgml/stream-check.sgml | 7 +--
src/config/pool_config_variables.c | 2 +-
src/context/pool_query_context.c | 10 +---
src/include/protocol/pool_pg_utils.h | 1 +
src/protocol/pool_pg_utils.c | 53 ++++++++++++++++++----
src/sample/pgpool.conf.sample-stream | 4 +-
src/streaming_replication/pool_worker_child.c | 4 +-
.../tests/033.prefer_lower_standby_delay/test.sh | 4 +-
9 files changed, 64 insertions(+), 32 deletions(-)
More information about the pgpool-committers
mailing list