Re: Fix lag columns in pg_stat_replication not advancing when replay LSN stalls

Fujii Masao <masao.fujii@gmail.com>

From: Fujii Masao <masao.fujii@gmail.com>
To: Xuneng Zhou <xunengzhou@gmail.com>
Cc: Shinya Kato <shinya11.kato@gmail.com>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Chao Li <li.evan.chao@gmail.com>
Date: 2025-10-23T04:30:21Z
Lists: pgsql-hackers
On Thu, Oct 23, 2025 at 12:26 AM Xuneng Zhou <xunengzhou@gmail.com> wrote:
> > I've created a patch adding your suggested comments (attached).
> > Since this is a follow-up to commit 883a95646a8, which was recently applied
> > and backpatched to all supported branches, I think we should backpatch
> > this one as well. Thought?
> >
>
> LGTM. Thanks for the patch!

I've pushed the patch. Thanks!

Regards,

-- 
Fujii Masao



Commits

  1. Add comments explaining overflow entries in the replication lag tracker.

  2. Fix stalled lag columns in pg_stat_replication when replay LSN stops advancing.