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

From: vignesh C <vignesh21(at)gmail(dot)com>
To: Peter Smith <smithpb2250(at)gmail(dot)com>
Cc: Amit Kapila <amit(dot)kapila16(at)gmail(dot)com>, Euler Taveira <euler(at)eulerto(dot)com>, Dilip Kumar <dilipbalaut(at)gmail(dot)com>, "shveta(dot)malik(at)gmail(dot)com" <shveta(dot)malik(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-09-09 08:45:48
Message-ID: CALDaNm0SUaiLQ9KBEZ08oGXd2788S-9bFMy_Aa2dQFuJbJdoqg@mail.gmail.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Wed, 27 May 2026 at 11:50, Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> The patch had previously been split for EXCEPT and non-EXCEPT changes.
>
> The 0001 patch was already pushed a while ago for PG19. I think now
> that 0002 patch can be revisited for PG20.

Attached v7 version patch has the changes for the same. This patch is
the same as [1], reattaching here so it is easier for review.

> ======
>
> IMO, the logical replication messages should consistently always give
> fully qualified relation names in the error messages. The relation
> named in the message can sometimes be ambiguous when not schema
> qualified.
>
> I saw some previous comment from Euler [1] saying we should refrain
> from changing existing messages, but IMO here we are not rewording
> message text for the sake of it; I think rather it is fixing the
> values substituted to the *existing* messages to improve the clarity,
> and at the same time making all the logical replication logs more
> consistent. But, perhaps I misunderstood Euler's comment: if it was -1
> referring only to backpatching then I agree.
>
> Anyway, I looked again at the old v5-0002 patch. I found it is only
> addressing the issue schema-qualification for
> check_publication_add_relation. Actually, I think that is just a very
> small part of something far bigger. e.g. There are many more places in
> logical replication related code where fully qualified names could be
> used.

I felt this can be discussed and handled in a separate thread if required.

[1] - https://www.postgresql.org/message-id/CALDaNm0YrwGNECBihB-hHOS3E8dhLFHjkPLSxOL-riY-ujGYjw%40mail.gmail.com

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 David Geier 2026-09-09 08:49:05 Re: Reduce build times of pg_trgm GIN indexes
Previous Message Chao Li 2026-09-09 08:20:24 Re: pg_stat_progress_cluster: do not default to CLUSTER