Show Replication Status
pg_replication_statusCheck the status of streaming replication standbys on a primary server, displaying replay lag and sync state to monitor replication health.
Instructions
Show the status of all streaming replication standbys connected to this primary, including replay lag.
Only meaningful on a primary server with active streaming replication.
Returns: JSON: { replicas: ReplicaInfo[], is_standby: boolean, lsn: string } Markdown: replica table with address, state, lag size, sync state
Useful for monitoring replication health and identifying lagging standbys.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable | markdown |