pg_stat_replication
pg_stat_replication
pg_stat_replication视图包含用于Greenplum数据库主镜像的walsender进程的元数据。
| 列 | 类型 | 参考 | 描述 |
|---|---|---|---|
| procpid | integer | WAL-sender后台进程的进程ID。 | |
| usesysid | integer | 运行WAL-sender后台进程的用户系统ID。 | |
| usename | name | 运行WAL-sender后台进程的用户名。 | |
| application_name | oid | 客户端应用名。 | |
| client_addr | name | 客户端IP地址。 | |
| client_port | integer | 客户端端口号。 | |
| backend_start | timestamp | 操作开始的时间戳。 | |
| state | text | WAL发送状态。可取值有:
startup backup catchup streaming |
|
| sent_location | text | WAL-sender已发送的xlog记录位置。 | |
| write_location | text | WAL-receiver的xlog记录写位置。 | |
| flush_location | text | WAL-receiver的xlog记录刷入位置。 | |
| replay_location | text | Standby xlog记录的重放位置。 | |
| sync_priority | text | 优先级,值为1。 | |
| sync_state | text | WAL-sender的同步状态。该值为sync。 |