pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add WalRcvGetState() to retrieve the state of a WAL receiver
Date: Tue, 04 Nov 2025 03:57:55 +0000
Message-ID: <E1vG8B9-004voc-1l@gemulon.postgresql.org> (raw)

Add WalRcvGetState() to retrieve the state of a WAL receiver

This has come up as useful as an alternative of WalRcvStreaming(), to be
able to do sanity checks based on the state of a WAL receiver.  This
will be used in a follow-up commit.

Author: Xuneng Zhou <xunengzhou@gmail.com>
Discussion: https://postgr.es/m/19093-c4fff49a608f82a0@postgresql.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/e0ca61e7c4d55c34d67a3cc6fa0bdea2f41d2cf2

Modified Files
--------------
src/backend/replication/walreceiverfuncs.c | 14 ++++++++++++++
src/include/replication/walreceiver.h      |  1 +
2 files changed, 15 insertions(+)



Message-ID: <E1vG8B9-004voc-1l@gemulon.postgresql.org>
Permalink:  ../E1vG8B9-004voc-1l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1vG8B9-004voc-1l@gemulon.postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: michael@paquier.xyz, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Add WalRcvGetState() to retrieve the state of a WAL receiver
  In-Reply-To: <E1vG8B9-004voc-1l@gemulon.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