Re: Include schema-qualified names in publication error messages.

From: vignesh C <vignesh21(at)gmail(dot)com>
To: Euler Taveira <euler(at)eulerto(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, "shveta(dot)malik(at)gmail(dot)com" <shveta(dot)malik(at)gmail(dot)com>, Peter Smith <smithpb2250(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Include schema-qualified names in publication error messages.
Date: 2026-05-08 05:53:50
Message-ID: CALDaNm0YrwGNECBihB-hHOS3E8dhLFHjkPLSxOL-riY-ujGYjw@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, 7 May 2026 at 17:57, Euler Taveira <euler(at)eulerto(dot)com> wrote:
>
> On Thu, May 7, 2026, at 3:00 AM, vignesh C wrote:
> >
> > * v5-0001-Include-schema-qualified-names-in-EXCEPT-clause-e.patch
> > * v5-0002-Include-schema-qualified-names-in-non-EXCEPT-publ.patch
>
> Regarding v5-0002:
>
> check_publication_add_relation(PublicationRelInfo *pri)
> {
> Relation targetrel = pri->relation;
> - const char *relname;
> const char *errormsg;
>
> if (pri->except)
> - {
> - relname = get_relation_qualified_name(targetrel);
> errormsg = gettext_noop("cannot specify relation \"%s\" in the publication EXCEPT clause");
> - }
> else
> - {
> - relname = RelationGetRelationName(targetrel);
> errormsg = gettext_noop("cannot add relation \"%s\" to publication");
> - }
>
> Why did you remove relname variable? In addition to reduce the patch size, you
> avoid increasing the number of modifications if the function
> get_relation_qualified_name is modified in the future.

I initially wanted to keep the changes aligned with the implementation
in HEAD. However, now that the patch has been committed, I agree with
retaining the variable. The attached patch includes the corresponding
changes.

Regards,
Vignesh

Attachment Content-Type Size
v7-0001-Use-schema-qualified-names-in-publication-add-rel.patch application/octet-stream 4.5 KB

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alexander Pyhalov 2026-05-08 06:03:32 Re: Function scan FDW pushdown
Previous Message solaimurugan vellaipandiyan 2026-05-08 05:17:20 Re: Function scan FDW pushdown