Add comments explaining overflow entries in the replication lag tracker.
authorFujii Masao <[email protected]>
Thu, 23 Oct 2025 04:24:56 +0000 (13:24 +0900)
committerFujii Masao <[email protected]>
Thu, 23 Oct 2025 04:26:57 +0000 (13:26 +0900)
commitb4810b4bb8859107a76a6caba48ae3d776ee03ec
tree958501a189c62dec75407f732071dd5966fa7540
parent4afab175bc13a08277ad40400a11db4e16905547
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 <[email protected]>
Reviewed-by: Fujii Masao <[email protected]>
Discussion: https://postgr.es/m/CABPTF7VxqQA_DePxyZ7Y8V+ErYyXkmwJ1P6NC+YC+cvxMipWKw@mail.gmail.com
Backpatch-through: 13
src/backend/replication/walsender.c