↑↓ 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_recovery

Read the PG 20 devel manual

The pg_stat_recovery view will contain at most one row, showing statistics about the recovery state of the startup process.

Reading PG 20devel·documented in 2 of 24 versions, 19 to 20

Development snapshot. These definitions may change before release.

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

Columns 9

As listed in the PostgreSQL 20 devel manual.

ColumnTypeDescription / reference
promote_triggeredbooleanTrue if a promotion has been triggered.
last_replayed_read_lsnpg_lsnStart write-ahead log location of the last successfully replayed WAL record.
last_replayed_end_lsnpg_lsnEnd write-ahead log location, plus one, of the last successfully replayed WAL record.
last_replayed_tliintegerTimeline of the last successfully replayed WAL record.
replay_end_lsnpg_lsnWrite-ahead log location of the record currently being replayed (end position plus one). When no record is being actively replayed, equals last_replayed_end_lsn.
replay_end_tliintegerTimeline of the WAL record currently being replayed. When no record is being actively replayed, equals last_replayed_tli.
recovery_last_xact_timetimestamp with time zoneTimestamp of the last transaction commit or abort record replayed during recovery. This is the time at which the commit or abort WAL record for that transaction was generated on the primary.
current_chunk_start_timetimestamp with time zoneTime when the startup process observed that replay had caught up with the latest WAL chunk received from streaming replication. Used in recovery-conflict timing and replay/apply-lag diagnostics. NULL if streaming WAL has not yet been received or the time is not available.
pause_statetextRecovery pause state. Possible values are: not paused: Recovery is proceeding normally. pause requested: A pause has been requested but recovery has not yet paused. paused: Recovery is paused.
Column history across versions
Version history 1
  1. 18 → 19 added

Definition snapshot: english-manuals:aaa8fa3b2bbd0ec5f88d62cc169… · English manual source