From 4e9a7d9874639c3af9646266eb19a85debe3c85a Mon Sep 17 00:00:00 2001 From: root Date: Wed, 19 Oct 2022 06:47:38 +0000 Subject: [PATCH] Fix GetWALAvailability function code comments. When checkpoint remove the WAL required for the replication stream, it invalidates the slot and walsender is terminated. --- src/backend/access/transam/xlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 81d339d57d..5300cdfcd2 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7363,7 +7363,7 @@ CreateRestartPoint(int flags) * above. * * * WALAVAIL_REMOVED means it has been removed. A replication stream on - * a slot with this LSN cannot continue after a restart. + * a slot with this LSN cannot continue. * * * WALAVAIL_INVALID_LSN means the slot hasn't been set to reserve WAL. */ -- 2.25.1