pgsql: Add WalRcvGetState() to retrieve the state of a WAL receiver - Mailing list pgsql-committers

From Michael Paquier
Subject pgsql: Add WalRcvGetState() to retrieve the state of a WAL receiver
Date
Msg-id E1vG8B9-004voc-1l@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(+)


pgsql-committers by date:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Fix unconditional WAL receiver shutdown during stream-archive tr
Next
From: Michael Paquier
Date:
Subject: pgsql: Add assertion check for WAL receiver state during stream-archive