Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vd0z7-00D10r-1z for pgpool-committers@arkaria.postgresql.org; Tue, 06 Jan 2026 06:56:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vd0z6-006kwr-0T for pgpool-committers@arkaria.postgresql.org; Tue, 06 Jan 2026 06:56:04 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vd0z5-006kwi-37 for pgpool-committers@lists.postgresql.org; Tue, 06 Jan 2026 06:56:04 +0000 Received: from meldrar.postgresql.org ([2a02:c0:301:0:ffff::31]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vd0z1-004SvR-0y for pgpool-committers@lists.postgresql.org; Tue, 06 Jan 2026 06:56:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=postgresql.org; s=20171124; h=Content-Transfer-Encoding:Content-Type: Mime-Version:References:In-Reply-To:From:Subject:To:Message-Id:Date:Sender: Reply-To:Cc:Content-ID:Content-Description; bh=23IBho8H2OUUIyAW8VRUbyQ0v0+E0QWBPzh0m6d3iRg=; b=J0OwoAYWHQpTZjsmO/JvfTNs4L i9Dfw2Gn+7Di7mDe9Alw4rEatPPq3sIO7L9E3DFe++1bX12yq+sT60M05hcIzKoXwz+rgnyUlQ30Z CC3R23cufNrw55KJZu9eQSVwQXJs46Ix7bz0ezU8Rl5OIMeGEvqJNGvfhZOCPK0tPx48iYGsoS1j4 Obf8+RokMsOxzqcBRrpBPVEhbLnKEfBiHCPlvGmaievWWyu6K5N+yIG5MYxYHvrpri1A8N7+GGpu3 5H0tNpAjhOME5N3AV66yUQvqe159RNhaeK8XfmFkaIwAIAiq2UchcCjJFhQmSfODjiVgccHPICroE rGu8UTmA==; Received: from [2409:11:4120:300:a6d4:bb4c:f55b:ed92] (helo=localhost) by meldrar.postgresql.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vd0yx-009jo0-16 for pgpool-committers@lists.postgresql.org; Tue, 06 Jan 2026 06:55:57 +0000 Date: Tue, 06 Jan 2026 15:55:50 +0900 (JST) Message-Id: <20260106.155550.428263298456265010.ishii@postgresql.org> To: pgpool-committers@lists.postgresql.org Subject: Re: pgpool: Feature: allow to specify external command to retrieve replicat From: Tatsuo Ishii In-Reply-To: References: X-Mailer: Mew version 6.8 on Emacs 29.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Host-Lookup-Failed: Reverse DNS lookup failed for 2409:11:4120:300:a6d4:bb4c:f55b:ed92 (failed) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Oops. > Feature: allow to specify external command to retrieve replication delay. > > This commit allows to specify an external command to retrieve > replication delay information for streaming replication standby nodes. > This feature is useful when backend database is a PostgreSQL > compatible third-party software which does not provide > pg_stat_replication view. > > For this purpose a new GUC variable "replication_delay_source_cmd" is > added. The user provided command accepts replica node identifiers > (e.g, server1:5432 server2:5432), and prints replication delay amount > in seconds or milliseconds to stdout. > > Also "replication_delay_source_timeout" GUC variable is added to give > up waiting for the command to finish if it takes long time. > > Author: Nadav Shatz > Reviewed-by: Tatsuo Ishii > Discussion: https://www.postgresql.org/message-id/CACeKOO2E6cuCOQGFzq8i0%2BpFwi%3DJG4deiapHGkShjMjbn_-6tw%40mail.gmail.comxo The last "xo" was accidentally added. Correct one: Discussion: https://www.postgresql.org/message-id/CACeKOO2E6cuCOQGFzq8i0%2BpFwi%3DJG4deiapHGkShjMjbn_-6tw%40mail.gmail.com > > Branch > ------ > master > > Details > ------- > https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=53844460fea156fbe1eb78a1adb87d65a8247b87 > > Modified Files > -------------- > doc.ja/src/sgml/stream-check.sgml | 125 ++++++ > doc/src/sgml/stream-check.sgml | 78 ++++ > src/config/pool_config_variables.c | 23 +- > src/include/pool_config.h | 5 +- > src/sample/pgpool.conf.sample-stream | 14 + > src/streaming_replication/pool_worker_child.c | 461 ++++++++++++++++++++- > .../tests/041.external_replication_delay/README | 59 +++ > .../tests/041.external_replication_delay/test.sh | 409 ++++++++++++++++++ > .../041.external_replication_delay/test_parsing.sh | 54 +++ > .../test_validation.sh | 323 +++++++++++++++ > 10 files changed, 1545 insertions(+), 6 deletions(-) >