From: | "shiy(dot)fnst(at)fujitsu(dot)com" <shiy(dot)fnst(at)fujitsu(dot)com> |
---|---|
To: | Peter Smith <smithpb2250(at)gmail(dot)com>, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | RE: create subscription - improved warning message |
Date: | 2022-10-17 08:11:46 |
Message-ID: | OSZPR01MB631051BA9AAA728CAA8CBD88FD299@OSZPR01MB6310.jpnprd01.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Oct 17, 2022 9:47 AM Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> On Sun, Oct 16, 2022 at 12:14 AM Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>
> wrote:
> >
> > On Fri, Oct 14, 2022 at 8:22 AM Peter Smith <smithpb2250(at)gmail(dot)com>
> wrote:
> > >
> > > On Thu, Oct 13, 2022 at 9:07 AM Peter Smith <smithpb2250(at)gmail(dot)com>
> wrote:
> > > >
> ...
> > > PSA a patch for adding examples of how to activate a subscription that
> > > was originally created in a disconnected mode.
> > >
> > > The new docs are added as part of the "Logical Replication -
> > > Subscription" section 31.2.
> > >
> > > The CREATE SUBSCRIPTION reference page was also updated to include
> > > links to the new docs.
> > >
> >
> > You have used 'pgoutput' as plugin name in the examples. Shall we
> > mention in some way that this is a default plugin used for built-in
> > logical replication and it is required to use only this one to enable
> > logical replication?
> >
>
> Updated as sugggested.
>
> PSA v5.
>
Thanks for your patch. Here are some comments.
In Example 2, the returned slot_name should be "myslot".
+test_pub=# SELECT * FROM pg_create_logical_replication_slot('myslot', 'pgoutput');
+ slot_name | lsn
+-----------+-----------
+ sub1 | 0/19059A0
+(1 row)
Besides, I am thinking is it possible to slightly simplify the example. For
example, merge example 1 and 2, keep the steps of example 2 and in the step of
creating slot, mention what should we do if slot_name is not specified when
creating subscription.
Regards,
Shi yu
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2022-10-17 08:16:49 | remove no longer necessary Perl compatibility hack |
Previous Message | Alvaro Herrera | 2022-10-17 07:43:42 | Re: Improve errhint for ALTER SUBSCRIPTION ADD/DROP PUBLICATION |