]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Add comments explaining overflow entries in the replication lag tracker.
authorFujii Masao <fujii@postgresql.org>
Thu, 23 Oct 2025 04:24:56 +0000 (13:24 +0900)
committerFujii Masao <fujii@postgresql.org>
Thu, 23 Oct 2025 04:26:36 +0000 (13:26 +0900)
commit4d707f2fd72857016400ad0a7b3e3ffa4bb2d730
tree256d26e7fe055f5b28f9788c3cb03d1b9252f2c2
parent0b36c326aa70f607cf97b99aa08c2f79f104e495
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
src/backend/replication/walsender.c