| From: | Baji Shaik <baji(dot)pgdev(at)gmail(dot)com> |
|---|---|
| To: | Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
| Cc: | PostgreSQL-development <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pg_dump writes a subscription's default slot name, which can't be restored |
| Date: | 2026-12-03 22:54:58 |
| Message-ID: | CA+fm-ROFrHpHKQoo9K1P7xgAkKZ4UxFdF9b4FaySMcyRoXs1CA@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello Masahiko,
On Thu, Dec 3, 2026 at 12:45 PM Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>
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 | Content-Type | Size |
|---|---|---|
| 0001-Validate-the-default-slot-name-in-CREATE-SUBSCRIPTIO.patch | application/octet-stream | 3.5 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Zsolt Parragi | 2026-12-03 23:26:18 | Re: Back-patch v19 improvements to common/int128.h? |
| Previous Message | Zsolt Parragi | 2026-12-03 22:52:32 | Re: DROP USER MAPPING doesn't acquire lock on its server |