pg_stat_replication.*_lag sometimes shows NULL during active replication

Edit
ID 6518
Title pg_stat_replication.*_lag sometimes shows NULL during active replication
CI (CFBot) Summary
Stats (from CFBot) Patch version: v1, Patch count: 1, First patch: +17−7, All patches: +17−7
Tags Bugfix Monitoring Physical Replication
Created 2026-02-24 06:58:44
Last modified 2026-02-24 06:58:44 (5 hours ago)
Latest email 2026-02-24 06:53:54 (5 hours ago)
Status
PG19-Final (2026-03-01 – 2026-03-31): Needs review
Target version stable
Authors Shinya Kato (shinyakato)
Reviewers Become reviewer
Committer
Links
Emails
pg_stat_replication.*_lag sometimes shows NULL during active replication
First at 2026-02-24 06:53:54 by Shinya Kato <shinya11.kato at gmail.com>
Latest at 2026-02-24 06:53:54 by Shinya Kato <shinya11.kato at gmail.com>
Latest attachment (v1-0001-Fix-pg_stat_replication.-_lag-showing-NULL-during.patch) at 2026-02-24 06:53:54 from Shinya Kato <shinya11.kato at gmail.com>
    Attachment (v1-0001-Fix-pg_stat_replication.-_lag-showing-NULL-during.patch) at 2026-02-24 06:53:54 from Shinya Kato <shinya11.kato at gmail.com> (Patch: Yes)
History
When Who What
2026-02-24 06:58:44 Shinya Kato (shinyakato) Attached mail thread CAOzEurTzcUrEzrH97DD7+Yz=HGPU81kzWQonKZvqBwYhx2G9_A@mail.gmail.com
2026-02-24 06:58:44 Shinya Kato (shinyakato) Created patch record
Edit