Re: create subscription - improved warning message - Mailing list pgsql-hackers

From Alvaro Herrera
Subject Re: create subscription - improved warning message
Date
Msg-id 20221011105706.twlv75xgcwgvgoe2@alvherre.pgsql
Whole thread Raw
In response to Re: create subscription - improved warning message  (Peter Smith <smithpb2250@gmail.com>)
Responses Re: create subscription - improved warning message
List pgsql-hackers
On 2022-Oct-10, Peter Smith wrote:

> On Mon, Oct 10, 2022 at 4:04 PM Amit Kapila <amit.kapila16@gmail.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.

though this still leaves a lot unexplained about that slot creation
(which options do they have to use).


If this sounds like too much for a HINT, perhaps we need a documentation
subsection that explains exactly what to do, and have this HINT
reference the documentation?  I don't think we do that anywhere else,
though.

-- 
Álvaro Herrera               48°01'N 7°57'E  —  https://www.EnterpriseDB.com/
"Industry suffers from the managerial dogma that for the sake of stability
and continuity, the company should be independent of the competence of
individual employees."                                      (E. Dijkstra)



pgsql-hackers by date:

Previous
From: Junwang Zhao
Date:
Subject: Re: Non-decimal integer literals
Next
From: Bharath Rupireddy
Date:
Subject: Re: Remove an unnecessary LSN calculation while validating WAL page header