| From: | Peter Smith <smithpb2250(at)gmail(dot)com> |
|---|---|
| To: | vignesh C <vignesh21(at)gmail(dot)com> |
| Cc: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: Review items for EXCEPT TABLE publication |
| Date: | 2026-09-11 07:04:10 |
| Message-ID: | CAHut+Pt2So0ifpwo6_cheqisLDLLsYCp2CnQ63FbpMoDRVUC9A@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Sep 11, 2026 at 4:34 PM vignesh C <vignesh21(at)gmail(dot)com> wrote:
>
> On Fri, 11 Sept 2026 at 11:21, Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> wrote:
> >
> > On Thu, Sep 10, 2026 at 11:09 AM vignesh C <vignesh21(at)gmail(dot)com> wrote:
> > >
> > > Finding #5: SET UNLOGGED on an excluded table produces an unrestorable
> > > catalog state
> > >
> >
> > + if (!toLogged &&
> > + GetRelationExcludedPublications(RelationGetRelid(rel)) != NIL)
> > + ereport(ERROR,
> > + (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE),
> > + errmsg("cannot change table \"%s\" to unlogged because i
> >
> > Can we have one unified function to check whether a table is part of
> > any publication and get an additional out parameter whether that is an
> > include or exclude table? As we can't have the same table both
> > included and excluded, this should work unless I am missing something.
>
> Here is an updated v4 version patch to handle the same.
>
In my earlier example, there are both precept t and f.
Won't your v4 new function return a random *isexcept result based on
the first one it stumbles upon?
IIUC, that `isexcept` out parameter should maybe be called
`has_any_except`, and you should iterate until you find the first
prexcept==true or find none.
Kind Regards,
Peter Smith.
Fujitsu Australia
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Yilin Zhang | 2026-09-11 07:09:59 | Re: bug: query returns different result with and without memoization. |
| Previous Message | Sebas Mannem | 2026-09-11 06:47:27 | Re: NOT NULL NOT ENFORCED |