From: | japin <japinli(at)hotmail(dot)com> |
---|---|
To: | Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> |
Cc: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | Re: Support ALTER SUBSCRIPTION ... ADD/DROP PUBLICATION ... syntax |
Date: | 2021-02-13 06:11:23 |
Message-ID: | MEYP282MB1669521338363F74BCEF39B0B68A9@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Thanks for your review again.
On Wed, 10 Feb 2021 at 21:49, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> wrote:
> On Fri, Feb 5, 2021 at 6:51 PM japin <japinli(at)hotmail(dot)com> wrote:
>> On Fri, 05 Feb 2021 at 17:50, Bharath Rupireddy <bharath(dot)rupireddyforpostgres(at)gmail(dot)com> wrote:
>> We will get cell == NULL when we iterate all items in publist. I use it
>> to check whether the dropped publication is in publist or not.
>>
>> > If you
>> > have a strong reasong retain this error errmsg("publication name
>> > \"%s\" do not in subscription", then there's a typo
>> > errmsg("publication name \"%s\" does not exists in subscription".
>>
>> Fixed.
>
> I think we still have a typo in 0002, it's
> + errmsg("publication name \"%s\" does not exist
> in subscription",
> instead of
> + errmsg("publication name \"%s\" does not exists
> in subscription",
>
Fixed.
> IIUC, with the current patch, the new ALTER SUBSCRIPTION ... ADD/DROP
> errors out on the first publication that already exists/that doesn't
> exist right? What if there are multiple publications given in the
> ADD/DROP list, and few of them exist/don't exist. Isn't it good if we
> loop over the subscription's publication list and show all the already
> existing/not existing publications in the error message, instead of
> just erroring out for the first existing/not existing publication?
>
Yes, you are right. Agree with you, I modified it. Please consider v5
for further review.
--
Regrads,
Japin Li.
ChengDu WenWu Information Technology Co.,Ltd.
Attachment | Content-Type | Size |
---|---|---|
v5-0001-Export-textarray_to_stringlist.patch | text/x-patch | 1.7 KB |
v5-0002-Introduce-a-new-syntax-to-add-drop-publications.patch | text/x-patch | 7.0 KB |
v5-0003-Test-ALTER-SUBSCRIPTION-.-ADD-DROP-PUBLICATION.patch | text/x-patch | 5.2 KB |
v5-0004-Add-documentation-for-ALTER-SUBSCRIPTION.ADD-DROP.patch | text/x-patch | 4.5 KB |
v5-0005-Add-tab-complete-for-ALTER-SUBSCRIPTION.ADD-DROP.patch | text/x-patch | 1.8 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Victor Yegorov | 2021-02-13 06:26:50 | Re: 64-bit XIDs in deleted nbtree pages |
Previous Message | Tom Lane | 2021-02-13 05:51:54 | Re: Why do we have MakeSingleTupleTableSlot instead of not using MakeTupleTableSlot? |