On Tue, 24 Nov 2026 at 14:56, Daniel Gustafsson <[email protected]> wrote:
>
> > On 24 Nov 2026, at 10:09, vignesh C <[email protected]> wrote:
>
> > While reviewing other work, I noticed a wrong comment in
> > UpdateDeadTupleRetentionStatus() in pg_subscription.c, the comment
> > above the catalog update says:
> > /* Set the subscription to disabled. */
> >
> > However, the code updates subretentionactive, not subenabled. This
> > comment appears to have been copied from DisableSubscription() when
> > the function was added.
> >
> > The attached patch updates the comment to:
> > /* Set the dead tuple retention status for the subscription. */
>
> Why not just remove it altogether?  The existing comment is wrong, and the
> replacement superfluous since it just states what the code does (which is
> trivial to see by reading the line in question), not why it does it.

Yes, it is obvious and already mentioned in the function header too.
So it can be removed. Here is an updated version to handle the same.

Regards,
Vignesh

Attachment: v2-0001-Remove-comment-in-UpdateDeadTupleRetentionStatus.patch
Description: Binary data

Reply via email to