From 59784181d5c69ffc23fad39604d00fdb66999468 Mon Sep 17 00:00:00 2001
From: Vignesh C <vignesh21@gmail.com>
Date: Mon, 23 Nov 2026 20:31:01 +0530
Subject: [PATCH] Fix comment in UpdateDeadTupleRetentionStatus()

The comment was copied from DisableSubscription() by a850be2fe65 and
said that the subscription is set to disabled, but the code sets
subretentionactive.
---
 src/backend/catalog/pg_subscription.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/backend/catalog/pg_subscription.c b/src/backend/catalog/pg_subscription.c
index 2ae57c056b4..762ee4f87eb 100644
--- a/src/backend/catalog/pg_subscription.c
+++ b/src/backend/catalog/pg_subscription.c
@@ -765,7 +765,7 @@ UpdateDeadTupleRetentionStatus(Oid subid, bool active)
 	memset(nulls, false, sizeof(nulls));
 	memset(replaces, false, sizeof(replaces));
 
-	/* Set the subscription to disabled. */
+	/* Set the dead tuple retention status for the subscription. */
 	values[Anum_pg_subscription_subretentionactive - 1] = BoolGetDatum(active);
 	replaces[Anum_pg_subscription_subretentionactive - 1] = true;
 
-- 
2.55.0

