pg_stat_replication

The pg_stat_replication view contains metadata of the walsender process that is used for Greenplum Database master mirroring.

The gp_stat_replication view contains walsender replication information for master and segment mirroring.

columntypereferencesdescription
pidinteger Process ID of WAL sender backend process.
usesysidinteger User system ID that runs the WAL sender backend process
usenamename User name that runs WAL sender backend process.
application_nameoid Client application name.
client_addrname Client IP address.
client_hostnametext The host name of the client machine.
client_portinteger Client port number.
backend_starttimestamp Operation start timestamp.
backend_xminxid The current backend’s xmin horizon.
statetext WAL sender state. The value can be:

startup

backup

catchup

streaming
sent_locationtext WAL sender xlog record sent location.
write_locationtext WAL receiver xlog record write location.
flush_locationtext WAL receiver xlog record flush location.
replay_locationtext Standby xlog record replay location.
sync_prioritytext Priority. the value is 1.
sync_statetext WAL sender synchronization state. The value is sync.

Parent topic: System Catalogs Definitions