pg_replication_status
View replication slots, connected replicas, and WAL position to spot lagging or disconnected replicas, or verify upstream status on a replica.
Instructions
Replication overview: configured replication slots, connected replicas (from pg_stat_replication), and current WAL position. Use on primary to spot lagging or disconnected replicas, on replicas to see upstream status. Returns empty arrays on a standalone (non-replicated) database rather than erroring.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||