{"Entry":{"collection":"metric","key":"pg_stat_recovery-replay_end_lsn","name":"pg_stat_recovery.replay_end_lsn","aliases":["replay_end_lsn","pg_stat_recovery"],"metadata":{"aliases":["replay_end_lsn","pg_stat_recovery"],"category":"pg_stat_recovery","content_hash":"317dcc8d8c0a2c3dd427cc69e3615eaba9b56450ad1452a67d042fc30e720f6c","imported_at":"2026-09-30T00:40:46.025494+08:00","name":"pg_stat_recovery.replay_end_lsn","name_zh":"","slug":"pg_stat_recovery-replay_end_lsn","summary":"Write-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."}},"Definition":{"Collection":"metric","Key":"pg_stat_recovery-replay_end_lsn","SourceDatabase":"center","Version":"20","SourceTable":"statistics_metric","SourceKey":"pg_stat_recovery-replay_end_lsn","SourceRevision":"4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41","Facts":{"comparison_data":{"field":"replay_end_lsn","sql_type":"pg_lsn","units_mentioned":[],"view":"pg_stat_recovery"},"comparison_hash":"7ebd9b0f0f47a49d7c77006a97d47f70a57da60a6afd60d1947881470c65f795","description":["Write-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."],"documented":true,"facts":[{"label":"View","value":"pg_stat_recovery"},{"label":"Field","value":"replay_end_lsn"},{"label":"SQL type","value":"pg_lsn"},{"label":"Units named in the field definition","value":"Not specified"},{"label":"Reset observation","value":"No stats_reset field is documented for this view"}],"field":"replay_end_lsn","manual_html":"","manual_path":"/docs/devel/monitoring-stats.html","related":[{"label":"pg_stat_recovery columns","url":"/wiki/catalog/pg_stat_recovery/?v=20"},{"label":"Statistics collection and reset functions","url":"/docs/devel/monitoring-stats.html"}],"release":{"channel":"devel","label":"20devel","major":"20","ref":"https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2","revision":"4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"},"sections":[{"paragraphs":["The pg_stat_recovery view will contain at most one row, showing statistics about the recovery state of the startup process. This view returns no rows when the server is not in recovery or the user does not have privileges of the pg_read_all_stats role."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT replay_end_lsn FROM pg_catalog.pg_stat_recovery;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"signature":"SELECT replay_end_lsn FROM pg_catalog.pg_stat_recovery;","source_only":false,"sources":[{"label":"PostgreSQL 20 English manual","path":"monitoring-stats.html","sha256":"dfc27a108b70bdf88f310801ae3db011a8f608befd927722e5f3e9bdcc070251","url":"/docs/devel/monitoring-stats.html#PG-STAT-RECOVERY-VIEW"}],"sql_type":"pg_lsn","tables":[],"units_mentioned":[],"view":"pg_stat_recovery"},"ManualEvidence":{"manual_path":"/docs/devel/monitoring-stats.html","release":{"channel":"devel","label":"20devel","major":"20","ref":"https://ftp.postgresql.org/pub/snapshot/dev/postgresql-snapshot.tar.bz2","revision":"4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41"},"sources":[{"label":"PostgreSQL 20 English manual","path":"monitoring-stats.html","sha256":"dfc27a108b70bdf88f310801ae3db011a8f608befd927722e5f3e9bdcc070251","url":"/docs/devel/monitoring-stats.html#PG-STAT-RECOVERY-VIEW"}]},"MeasuredEvidence":{}},"Text":{"Collection":"metric","Key":"pg_stat_recovery-replay_end_lsn","SourceDatabase":"center","Version":"20","Locale":"en","Title":"pg_stat_recovery.replay_end_lsn","Summary":"Write-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.","BodyHTML":"\u003cp\u003eWrite-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.\u003c/p\u003e","SourceRevision":"4d3346909b201ac1648232cf290462a7070c119326f56196f1f0253ed80fae41","ContentHash":"196657e29f957848af0f31a09d617ee7ad3d27066e7c1f099a4680f825649d74","Payload":{"description":["Write-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."],"manual_html":"","related":[{"label":"pg_stat_recovery columns","url":"/wiki/catalog/pg_stat_recovery/?v=20"},{"label":"Statistics collection and reset functions","url":"/docs/devel/monitoring-stats.html"}],"sections":[{"paragraphs":["The pg_stat_recovery view will contain at most one row, showing statistics about the recovery state of the startup process. This view returns no rows when the server is not in recovery or the user does not have privileges of the pg_read_all_stats role."],"title":"View semantics"},{"paragraphs":["Read the same-version statistics collection and view documentation below for reset scope and visibility. No per-field reset rule is inferred from the field name."],"title":"Collection and reset context"},{"code":"SELECT replay_end_lsn FROM pg_catalog.pg_stat_recovery;","paragraphs":["Example query; no execution result or measured value is asserted."],"title":"Inspect this field"}],"tables":[]}},"RequestedLocale":"zh-Hans","Fallback":true,"Versions":["19","20"],"Locales":["en"],"Signatures":null,"Spellings":null,"SQLState":null,"Evidence":null}
