pgsql: Add comments explaining overflow entries in the replication lag - Mailing list pgsql-committers

From Fujii Masao
Subject pgsql: Add comments explaining overflow entries in the replication lag
Date
Msg-id E1vBmwm-0034CF-2z@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
Add comments explaining overflow entries in the replication lag tracker.

Commit 883a95646a8 introduced overflow entries in the replication lag tracker
to fix an issue where lag columns in pg_stat_replication could stall when
the replay LSN stopped advancing.

This commit adds comments clarifying the purpose and behavior of overflow
entries to improve code readability and understanding.

Since commit 883a95646a8 was recently applied and backpatched to all
supported branches, this follow-up commit is also backpatched accordingly.

Author: Xuneng Zhou <xunengzhou@gmail.com>
Reviewed-by: Fujii Masao <masao.fujii@gmail.com>
Discussion: https://postgr.es/m/CABPTF7VxqQA_DePxyZ7Y8V+ErYyXkmwJ1P6NC+YC+cvxMipWKw@mail.gmail.com
Backpatch-through: 13

Branch
------
REL_13_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/b4810b4bb8859107a76a6caba48ae3d776ee03ec

Modified Files
--------------
src/backend/replication/walsender.c | 13 +++++++++++++
1 file changed, 13 insertions(+)


pgsql-committers by date:

Previous
From: Fujii Masao
Date:
Subject: pgsql: Add comments explaining overflow entries in the replication lag
Next
From: Michael Paquier
Date:
Subject: pgsql: pg_rewind: Extend code detecting relation files to work with WAL