Re: Wrong comment for ReplicationSlotCreate - Mailing list pgsql-hackers

From Amit Kapila
Subject Re: Wrong comment for ReplicationSlotCreate
Date
Msg-id CAA4eK1Lx65R92cPpAdgQVcja-7R5835UMXpjtR8MmJro=bmq4A@mail.gmail.com
Whole thread Raw
In response to RE: Wrong comment for ReplicationSlotCreate  ("Hayato Kuroda (Fujitsu)" <kuroda.hayato@fujitsu.com>)
Responses RE: Wrong comment for ReplicationSlotCreate
Re: Wrong comment for ReplicationSlotCreate
List pgsql-hackers
On Mon, Jan 5, 2026 at 9:46 AM Hayato Kuroda (Fujitsu)
<kuroda.hayato@fujitsu.com> wrote:
>
> Dear Daniil, Chao,
>
> I was the main author of 1462aad2. It is enough to remove outdated comments atop
> the definition. In other words, your patch looks good to me.
>
> If needed, we can also notify developers that the two-phase option should not be
> altered while decoding WAL records. In logical replication, we ensure that the
> subscription is disabled and there are no apply workers. However, I don't think
> such comments can be atop the ReplicationSlotCreate(). Maybe around
> ReplicationSlotAlter(), but it may be out of scope of the initial motivation.
>

I think it is better if we add some comments atop
ReplicationSlotAlter() as you are suggesting. What do you think of the
attached?

--
With Regards,
Amit Kapila.

Attachment

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Wrong comment for ReplicationSlotCreate
Next
From: Amit Kapila
Date:
Subject: Re: [PATCH v1] replindex: Fix comment grammar in build_replindex_scan_key()