From 1ca604c2018456f2da357d944e0f03c3efaeb00d Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Thu, 19 Jan 2023 18:41:08 -0500 Subject: [PATCH] Improve comment about GetWALAvailability's WALAVAIL_REMOVED code. Sirisha Chamarthi and Kyotaro Horiguchi Discussion: https://postgr.es/m/CAKrAKeXt-=bgm=d+EDmcC9kWoikp8kbVb3LH0K3K+AGGsykpHQ@mail.gmail.com --- src/backend/access/transam/xlog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 8f47fb7570..cc0d9a05d9 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -7338,7 +7338,8 @@ 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. (Any associated walsender + * processes should have been terminated already.) * * * WALAVAIL_INVALID_LSN means the slot hasn't been set to reserve WAL. */ -- 2.11.4.GIT