From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
---|---|
To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
Cc: | shveta malik <shveta(dot)malik(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, Masahiko Sawada <sawada(dot)mshk(at)gmail(dot)com>, "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>, Nisha Moond <nisha(dot)moond412(at)gmail(dot)com>, Peter Eisentraut <peter(at)eisentraut(dot)org>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Euler Taveira <euler(at)eulerto(dot)com>, Michael Paquier <michael(at)paquier(dot)xyz>, "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com>, "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org> |
Subject: | Re: Logical Replication of sequences |
Date: | 2025-10-09 06:07:45 |
Message-ID: | CAA4eK1KtZpC=kWmLh-ydoCshcQjXtVAihmTfBQQukZXCAwhqZQ@mail.gmail.com |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Thu, Oct 9, 2025 at 11:21 AM Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> I saw a sequence replication patch was committed recently [1], so I
> was looking at the diffs. Below are a couple of observations:
>
> //////////
>
> 1.
> The following message seems overly long:
> errmsg("publication parameters are not applicable to sequence
> synchronization and will be ignored for sequences"));
>
> I saw the message was already discussed here [2], but at that time, it
> was not shortened much.
>
> How about something shorter? Some examples.
> errmsg("publication parameters will be ignored for sequences"));
> errmsg("publication parameters will be ignored for sequence replication"));
>
I thought about these alternatives but left in favor of clarity with a
longer message. However, I am fine to change if others also think so.
Let's wait and see if others have an opinion on this point.
> ======
>
> 2.
> +-- Specifying WITH clause in an ALL SEQUENCES publication will emit a NOTICE.
> +SET client_min_messages = 'NOTICE';
> +CREATE PUBLICATION regress_pub_for_allsequences_alltables_withclause
> FOR ALL SEQUENCES, ALL TABLES WITH (publish = 'insert');
> +CREATE PUBLICATION regress_pub_for_allsequences_withclause FOR ALL
> SEQUENCES WITH (publish_generated_columns = 'stored');
> +RESET client_min_messages;
>
> Why not also test WITH('publish_via_partition_root')?
>
It is not required to write a test with all the options, the current
set chosen seems sufficient.
--
With Regards,
Amit Kapila.
From | Date | Subject | |
---|---|---|---|
Next Message | Tatsuo Ishii | 2025-10-09 06:08:58 | User defined window functions calling WinGetFuncArgInPartition/WINDOW_SEEK_HEAD |
Previous Message | Chao Li | 2025-10-09 06:04:09 | Re: Enhance Makefiles to rebuild objects on map file changes |