Re: Support EXCEPT for ALL SEQUENCES publications

From: Shlok Kyal <shlok(dot)kyal(dot)oss(at)gmail(dot)com>
To: Peter Smith <smithpb2250(at)gmail(dot)com>
Cc: Ashutosh Sharma <ashu(dot)coek88(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, vignesh C <vignesh21(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Support EXCEPT for ALL SEQUENCES publications
Date: 2026-07-02 06:22:46
Message-ID: CANhcyEXxi-OnjVuKs47tT7kfQRbPESZs_z4q9jZFK15yQ0z+LA@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 2 Jul 2026 at 04:53, Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> Only trivial comments for v16*
>
> //////
> v16-0001
> //////
>
> ======
> src/bin/pg_dump/pg_dump.c
>
> getPublictions:
>
> 1.
> /*
> - * Get the list of tables for publications specified in the EXCEPT
> - * TABLE clause.
> + * Get the list of tables and sequences for publications specified in
> + * the EXCEPT clause.
> *
>
> Perhaps this comment should say that EXCEPT (TABLE ...) is introduced
> in PG19, and EXCEPT (SEQUENCE ...) is introduced in PG20. That way
> there are no surprises about the different version checks that follow.
>
> ======
> src/test/subscription/t/037_except.pl
>
> 2.
> +# Check the initial data on subscriber
> +$result = $node_subscriber->safe_psql('postgres',
> + "SELECT last_value, is_called FROM seq_excluded_in_pub1");
> +is($result, '1|f', 'sequences in EXCEPT list is excluded');
>
> typo: plural. Should be "sequences in the EXCEPT list are excluded"
>
> //////
> v16-0002
> //////
>
> ======
> src/test/subscription/t/037_except.pl
>
> 1.
> +is($result, '1|f', 'sequences in EXCEPT list is excluded');
>
> typo: plural. Should be "sequences in the EXCEPT list are excluded"
>
Thanks Peter for the review. I have addressed the comments.
Also the patch needed a rebase after the recent commits.

Please find the updated v17 patch attached.

Thanks,
Shlok Kyal

Attachment Content-Type Size
v17-0001-Support-EXCEPT-for-ALL-SEQUENCES-in-CREATE-PUBLI.patch application/octet-stream 66.8 KB
v17-0002-Support-EXCEPT-for-ALL-SEQUENCES-in-ALTER-PUBLIC.patch application/octet-stream 33.9 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message John Naylor 2026-07-02 06:23:01 Re: Update EnableTimeoutParams timeout type comment
Previous Message Tender Wang 2026-07-02 06:17:01 Re: satisfies_hash_partition crash