From: Taiki Koshino <koshino@sraoss.co.jp>
To: pgpool-committers@lists.postgresql.org
Subject: pgpool: Report replication delay as -1 for down standby nodes
Date: Mon, 05 Oct 2026 05:27:54 +0000
Message-ID: <E1xDbEw-00000006Pax-0lbm@gothos.postgresql.org> (raw)
Report replication delay as -1 for down standby nodes
SHOW POOL_NODES and pcp_node_info reported the last measured replication
delay after a standby node became down or was detached. The value could
be stale because replication delay cannot be measured for a down node.
Report the delay as "-1" for a down standby in both commands.
Keep the stored value unchanged to avoid treating an unmeasured delay
as zero when the standby is attached again.
Update the 003.failover regression test expectations for the new
SHOW POOL_NODES output.
Author: Taiki Koshino <koshino@sraoss.co.jp>
Discussion: https://github.com/pgpool/pgpool2/issues/131
Branch
------
master
Details
-------
https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=a03079a11769c72ac34e05dcb91f36793333b...
Modified Files
--------------
src/test/regression/tests/003.failover/create_expected.sql | 2 +-
.../regression/tests/003.failover/create_expected_node0.sql | 2 +-
src/tools/pcp/pcp_frontend_client.c | 7 ++++++-
src/utils/pool_process_reporting.c | 10 +++++++++-
4 files changed, 17 insertions(+), 4 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgpool-committers@postgresql.org
Cc: koshino@sraoss.co.jp
Subject: Re: pgpool: Report replication delay as -1 for down standby nodes
In-Reply-To: <E1xDbEw-00000006Pax-0lbm@gothos.postgresql.org>
References: <E1xDbEw-00000006Pax-0lbm@gothos.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox