↑↓ select↵ open⌫ change scopeOpen full search

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

Supported versions: Current (18) / 17 / 16 / 15 / 14
Development versions: 19 / 20devel
Unsupported versions: 13 / 12 / 11 / 10 / 9.6 / 9.5
Historical version. PostgreSQL 9.6 has reached end of support. 2021-11-11. See the current manual.

50.70. pg_replication_origin_status

The pg_replication_origin_status view contains information about how far replay for a certain origin has progressed. For more on replication origins see Chapter 48.

Table 50-71. pg_replication_origin_status Columns

NameTypeReferencesDescription
local_idOidpg_replication_origin.roidentinternal node identifier
external_idtextpg_replication_origin.ronameexternal node identifier
remote_lsnpg_lsn The origin node's LSN up to which data has been replicated.
local_lsnpg_lsn  This node's LSN at which remote_lsn has been replicated. Used to flush commit records before persisting data to disk when using asynchronous commits.

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.