Skip to content

gp_stat_replication

The gp_stat_replication view contains replication statistics of the walsender process that is used for WarehousePG Write-Ahead Logging (WAL) replication when coordinator or segment mirroring is enabled.

columntypereferencesdescription
gp_segment_idintegerUnique identifier of a segment (or coordinator) instance.
pidintegerProcess ID of the walsender backend process.
usesysidoidUser system ID that runs the walsender backend process.
usenamenameUser name that runs the walsender backend process.
application_nametextClient application name.
client_addrinetClient IP address.
client_hostnametextClient host name.
client_portintegerClient port number.
backend_starttimestampOperation start timestamp.
backend_xminxidThe current backend's xmin horizon.
statetextwalsender state. The value can be:

startup

backup

catchup

streaming
sent_locationtextwalsender xlog record sent location.
write_locationtextwalreceiver xlog record write location.
flush_locationtextwalreceiver xlog record flush location.
replay_locationtextCoordinator standby or segment mirror xlog record replay location.
sync_priorityintegerPriority. The value is 1.
sync_statetextwalsendersynchronization state. The value is sync.
sync_errortextwalsender synchronization error. none if no error.

Parent topic: System Catalogs Definitions