select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

SYSTEM CATALOGS / STATISTICS VIEWS

pg_stat_wal_receiver

Read PG 18 manual ↗

The pg_stat_wal_receiver view will contain only one row, showing statistics about the WAL receiver from that receiver's connected server.

Kind
Statistics views
Columns in this snapshot
15
Definition source
English manual

Columns 15

ColumnTypeDescription / reference
pidintegerProcess ID of the WAL receiver process
statustextActivity status of the WAL receiver process
receive_start_lsnpg_lsnFirst write-ahead log location used when WAL receiver is started
receive_start_tliintegerFirst timeline number used when WAL receiver is started
written_lsnpg_lsnLast write-ahead log location already received and written to disk, but not flushed. This should not be used for data integrity checks.
flushed_lsnpg_lsnLast write-ahead log location already received and flushed to disk, the initial value of this field being the first log location used when WAL receiver is started
received_tliintegerTimeline number of last write-ahead log location received and flushed to disk, the initial value of this field being the timeline number of the first log location used when WAL receiver is started
last_msg_send_timetimestamp with time zoneSend time of last message received from origin WAL sender
last_msg_receipt_timetimestamp with time zoneReceipt time of last message received from origin WAL sender
latest_end_lsnpg_lsnLast write-ahead log location reported to origin WAL sender
latest_end_timetimestamp with time zoneTime of last write-ahead log location reported to origin WAL sender
slot_nametextReplication slot name used by this WAL receiver
sender_hosttextHost of the PostgreSQL instance this WAL receiver is connected to. This can be a host name, an IP address, or a directory path if the connection is via Unix socket. (The path case can be distinguished because it will always be an absolute path, beginning with /.)
sender_portintegerPort number of the PostgreSQL instance this WAL receiver is connected to.
conninfotextConnection string used by this WAL receiver, with security-sensitive fields obfuscated.
Column history across versions
Version history 6
  1. PG 18 → 19changed
  2. PG 12 → 13changed
  3. PG 11 → 12changed
  4. PG 10 → 11changed
  5. PG 9.6 → 10changed
  6. PG 9.5 → 9.6added

Definition snapshot: english-manuals:46c47dc7aa199f4d417ac0f6005… · English manual source