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

Michael Paquier <michael@paquier.xyz>

Commit: e0ca61e7c4d55c34d67a3cc6fa0bdea2f41d2cf2
Author: Michael Paquier <michael@paquier.xyz>
Date: 2025-11-04T03:57:36Z
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

Files

Discussion