Hello Masahiko,

On Thu, Dec 3, 2026 at 12:45 PM Masahiko Sawada <[email protected]>
wrote:

>
> Instead of changing pg_dump, can we validate the subscription name if
> CREATE SUBSCRIPTION uses the subscription name as the slot name?
>

Thanks for looking.
Yes, that makes sense. Such a subscription can never work anyway.
Validating the default slot name in CREATE SUBSCRIPTION just reports
that earlier. Patch attached.

I also observed that the reserved name gets through the same way and
the patch rejects both, since it uses the same check as an explicit
slot_name.

But it doesn't help those databases that already have such a subscription.
Restore and pg_upgrade still fail.

Thanks,
Baji Shaik

Attachment: 0001-Validate-the-default-slot-name-in-CREATE-SUBSCRIPTIO.patch
Description: Binary data

Reply via email to