Re: Support EXCEPT for TABLES IN SCHEMA publications

Поиск
Список
Период
Сортировка
Искать
От
Nisha Moond
Тема
Re: Support EXCEPT for TABLES IN SCHEMA publications
Дата
в 14:30:50
Msg-id
CABdArM5j8gX_xYDU6_aPEOuPAiCGtF8QyrpHeqZXQDsQ_wpJKA@mail.gmail.com
Ответ на
Список
Дерево обсуждения
Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Peter Smith <smithpb2250@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Amit Kapila <amit.kapila16@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Peter Smith <smithpb2250@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications shveta malik <shveta.malik@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications shveta malik <shveta.malik@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Peter Smith <smithpb2250@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications shveta malik <shveta.malik@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Amit Kapila <amit.kapila16@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Peter Smith <smithpb2250@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications shveta malik <shveta.malik@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications shveta malik <shveta.malik@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications shveta malik <shveta.malik@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Peter Smith <smithpb2250@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Peter Smith <smithpb2250@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications vignesh C <vignesh21@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications vignesh C <vignesh21@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications vignesh C <vignesh21@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications vignesh C <vignesh21@gmail.com>
Re: Support EXCEPT for TABLES IN SCHEMA publications Nisha Moond <nisha.moond412@gmail.com>
On Mon, Jun 15, 2026 at 11:50 AM Amit Kapila  wrote:
>
> On Thu, Jun 11, 2026 at 12:17 PM Peter Smith  wrote:
> >
> > //////////
> > v12-0002
> >
> > ======
> > doc/src/sgml/ref/alter_publication.sgml
> >
> > 1.
> > +     
> > +      For FOR TABLES IN SCHEMA publications, the
> > +      EXCEPT clause is schema-scoped.  If a table listed in
> > +      the EXCEPT clause is later moved to a different schema
> > +      using ALTER TABLE ... SET SCHEMA, the exclusion is
> > +      removed; the table will then be published if its new schema is part of a
> > +      publication.  If the table is subsequently moved back to the original
> > +      schema, the exclusion is not restored, and must be re-established
> > +      explicitly using ALTER PUBLICATION.  Dropping a table
> > +      always removes it from the EXCEPT clause,
> > regardless of
> > +      publication type.
> > +     
> >
> >
> > I think the sentence "If the table is subsequently moved back..." is
> > overkill, and does not need to be said. The prior info "the exclusion
> > is removed" already tells me the exclusion is gone, and I think is
> > reasonable to assume "removed" means that it is gone for good, with no
> > ambiguity that it might magically come back.
> >
> > YMMV. Leave it as-is if you prefer.
> >
>
> I feel it is okay to keep the proposed sentence to avoid any ambiguity
> by the user to consider the schema-scope state is symmetric.
>

Okay, I have kept this para as-it-is.

The other comments on v12-0001 from [1] have also been addressed.

Please find the updated v13 patches attached.

[1] https://www.postgresql.org/message-id/CAHut%2BPv-GA1oGa6%2Bnwn_5AVhBg8NuJThQVUzqhQPXJge49jnew%40mail.gmail.com

--
Thanks,
Nisha
В списке pgsql-hackers по дате отправления
От: Nisha Moond
Дата:
От: shveta malik
Дата:
FAQ