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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "pg_replication_status"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| response_format | No | Output format: 'markdown' for human-readable, 'json' for machine-readable | markdown |