postgres.git / summary / log / commit / refs
commit 1ca604c2018456f2da357d944e0f03c3efaeb00d
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Thu Jan 19 23:41:08 2023 +0000
First released in: 16.0
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 8f47fb75700..cc0d9a05d9f 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.
*/
[parent: 5a617d75d3b3]