pg_stat_replication
pg_stat_replication¶
pg_stat_replication
视图包含用于SeaboxMPP数据库主镜像的walsender
进程的元数据。
列 | 类型 | 参考 | 描述 |
---|---|---|---|
pid |
integer | WAL-sender后台进程的进程ID。 | |
usesysid |
oid | 运行WAL-sender后台进程的用户系统ID。 | |
usename |
name | 运行WAL-sender后台进程的用户名。 | |
application_name |
text | 客户端应用名。 | |
client_addr |
inet | 客户端IP地址。 | |
client_port |
integer | 客户端端口号。 | |
backend_start |
timestamp | 操作开始的时间戳。 | |
state |
text | WAL发送状态。 | |
sent_lsn |
pg_lsn | WAL-sender已发送的xlog记录位置。 | |
write_lsn |
pg_lsn | WAL-receiver的xlog记录写位置。 | |
flush_lsn |
pg_lsn | WAL-receiver的xlog记录刷入位置。 | |
replay_lsn |
pg_lsn | Standby xlog记录的重放位置。 | |
sync_priority |
integer | 优先级,值为1。 | |
client_hostname |
text | WAL-sender的同步状态。该值为sync。 | |
backend_xmin |
xid | 由hot_standby_feedback报告的这个后备机的xmin水平线。 | |
write_lag |
interval | 从本地刷新近期的WAL与接受到此备用服务器已写入WAL的通知(但尚未刷新或应用它)之间的时间经过。如果将此服务器配置为同步备用服务器,则可以使用此参数来衡量在提交时synchronous_commit 级别remote_write 所导致的延迟。 |
|
flush_lag |
interval | 在本地刷新近期的WAL与接受到后备服务器已经写入并且刷新它(但还没有应用)的通知之间经过的时间。如果该服务器被配置为同步备用服务器,这可以用来测量在提交时synchronous_commit 的级别on 所产生的延迟。 |
|
replay_lag |
interval | 在本地刷新近期的WAL与接受到后备服务器已经写入、刷新并应用它的通知之间经过的时间。如果该服务器被配置为同步备用服务器,这可以用来测量在提交时synchronous_commit 的级别remote_apply 所产生的延迟。 |
|
reply_time |
timestamp | 从备用服务器收到的最后一条回复消息的发送时间。 | |
send_total_size |
bigint | 发送数据量,进程启动后的累计量,单位:字节。 | |
wal_send_rate |
bigint | 发送速率,单位:B/s。 |