Re: pg_dump writes a subscription's default slot name, which can't be restored

From: Zsolt Parragi <zsolt(dot)parragi(at)percona(dot)com>
To: Baji Shaik <baji(dot)pgdev(at)gmail(dot)com>
Cc: pgsql-hackers(at)lists(dot)postgresql(dot)org, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>
Subject: Re: pg_dump writes a subscription's default slot name, which can't be restored
Date: 2026-12-05 20:06:39
Message-ID: CAN4CZFNX5Y=o+DFUaQCxigN5Lbee3fB030HTgaS7eWM7iVqhOA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 04 Dec 2026, Baji Shaik <baji(dot)pgdev(at)gmail(dot)com> wrote:
> but slot_name = 'none' is still accepted, just meaning no slot. So the
> message reads a bit odd next to that. Would wording it in terms of the
> subscription name be clearer, something like "subscription name "none"
> cannot be used as the default replication slot name"? Or is there a
> better way to handle it?

I think the error message, together with the DETAIL is okay. But why
can't we use the same wording as for pg_conflict_detection?

+ERROR: replication slot name "none" is reserved
+DETAIL: The subscription name is used as the replication slot name
when slot_name is not specified.

so the
+ subscription name must then be a valid replication slot name other
+ than <literal>none</literal>. The name cannot be
+ <literal>pg_conflict_detection</literal> as it is reserved for the

Same question fort he documentation: why do we have to say these two
differently? pg_confklict_detection is reserved for the conflict
detection, and none is reserved for the no slot value.

And if we prevent this happening, most likely we should also handle this in

pg_createsubscriber -D "$standby" -P "$publisher" -d postgres
--subscription=none --dry-run

to either mean none or to error out.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Dave Sharpe 2026-12-05 20:14:06 Re: VACUUM FULL / REPACK on the primary make hot standby queries miss rows (2012 report, still unfixed)
Previous Message Kacper Kuras 2026-12-05 18:16:56 Re: Proposal: INSERT ... BY NAME