Add WalRcvGetState() to retrieve the state of a WAL receiver
Michael Paquier <michael@paquier.xyz>
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
| Path | Change | +/− |
|---|---|---|
| src/backend/replication/walreceiverfuncs.c | modified | +14 −0 |
| src/include/replication/walreceiver.h | modified | +1 −0 |
Discussion
- BUG #19093: Behavioral change in walreceiver termination between PostgreSQL 14.17 and 14.18 21 messages · 2025-10-23 → 2025-11-09