Re: create subscription - improved warning message

From: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
To: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
Cc: Peter Smith <smithpb2250(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: create subscription - improved warning message
Date: 2022-10-12 07:55:47
Message-ID: CAA4eK1+qmOY=3Si0+HOrmxPR0F9-ywEjGPH=7L-8XhpJcjzAeA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 11, 2022 at 4:27 PM Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> wrote:
>
> On 2022-Oct-10, Peter Smith wrote:
>
> > On Mon, Oct 10, 2022 at 4:04 PM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
>
> > > I think the below gives accurate information:
> > > WARNING: subscription was created, but is not connected
> > > HINT: You should create the slot manually, enable the subscription,
> > > and run %s to initiate replication.
>
> I guess this is reasonable, but how do I know what slot name do I have
> to create? Maybe it'd be better to be explicit about that:
>
> HINT: You should create slot \"%s\" manually, enable the subscription, and run %s to initiate replication.
>

I am not so sure about including a slot name because users can create
a slot with a name of their choice and set it via Alter Subscription.

--
With Regards,
Amit Kapila.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2022-10-12 07:57:26 Re: Fix obsolete reference to ExecCreatePartitionPruneState
Previous Message Michael Paquier 2022-10-12 07:53:45 Re: Implementing Incremental View Maintenance