| From: | Baji Shaik <baji(dot)pgdev(at)gmail(dot)com> |
|---|---|
| To: | Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com> |
| Cc: | pgsql-hackers(at)lists(dot)postgresql(dot)org, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com> |
| Subject: | Re: pg_dump writes a subscription's default slot name, which can't be restored |
| Date: | 2026-12-04 01:56:31 |
| Message-ID: | CA+fm-RNkXqkR8oMFRvuAvLkw9Y6=7i_xgbjhtuUPxT3Q5cW8bQ@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hello Zsolt,
On Thu, Dec 3, 2026 at 5:55 PM Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
wrote:
Thank you so much for review and feedback.
> 1. CREATE SUBSCRIPTION none CONNECTION '...' PUBLICATION p WITH
> (connect = false);
>
> This is a not-so realistic corner case, but for this case restore
> still doesn't work even with the patch.
>
Right, and it doesn't even fail. v2 rejects "none" as the default slot name
too.
>
> 2.
>
> +WARNING: subscriptions created by regression test cases should have
> names starting with "regress_"
>
Renamed it to "regress_TestSub", and the reserved name and "none"
tests now run with client_min_messages = ERROR.
>
> 3.
> Another nitpick: the CREATE SUBSCRIPTION / the user didn't specify any
> slot name. Maybe this could have a detail explaining that? 'The
> subscription name is used as the replication slot name when slot_name
> is not specified' or something like that.
> 4. Should the documentation be also updated to mention this?
>
Added the DETAIL and updated the slot_name description in
CREATE SUBSCRIPTION.
Thanks,
Baji Shaik
| Attachment | Content-Type | Size |
|---|---|---|
| v2-0001-Validate-the-default-slot-name-in-CREATE-SUBSCRIP.patch | application/octet-stream | 6.9 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Shinya Kato | 2026-12-04 02:40:29 | Re: Speed up binary COPY TO by not allocating 1 kB per datum |
| Previous Message | Peter Smith | 2026-12-04 01:49:02 | Re: Show the conflict log table in \dRs+ output |