| From: | Amit Kapila <amit(dot)kapila16(at)gmail(dot)com> |
|---|---|
| To: | Peter Smith <smithpb2250(at)gmail(dot)com> |
| Cc: | vignesh C <vignesh21(at)gmail(dot)com>, "Zhijie Hou (Fujitsu)" <houzj(dot)fnst(at)fujitsu(dot)com>, Chao Li <li(dot)evan(dot)chao(at)gmail(dot)com>, shveta malik <shveta(dot)malik(at)gmail(dot)com>, Fujii Masao <masao(dot)fujii(at)gmail(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>, Manuel Reyes Bravo <manuelreyesbravo(at)gmail(dot)com> |
| Subject: | Re: Distinguish publication exclusions in object addresses |
| Date: | 2026-09-18 04:13:31 |
| Message-ID: | CAA4eK1KuMrwZ+JM7yB9Bmg84_UCUiaA+2tV7uG+Gz2dhs+4TLg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On Fri, Sep 18, 2026 at 8:20 AM Peter Smith <smithpb2250(at)gmail(dot)com> wrote:
>
> AFAICT, the patch has traded one kind of quoting problem for another.
>
> Before patch v3, the message might show nested quotes.
>
> After patch v3, the message might show mismatched quotes:
> CREATE PUBLICATION testpub9 FOR ALL TABLES EXCEPT (TABLE "schema has
> embedded "" quotes"."part has embedded "" quotes");
> ERROR: cannot specify relation "schema has embedded " quotes.part has
> embedded " quotes" in the publication EXCEPT clause
>
This is not a problem but a general behavior in other cases as well.
For example, see few:
1.
postgres=# CREATE TABLE "a""b"(x int);
CREATE TABLE
postgres=# CREATE TABLE "a""b"(x int);
ERROR: relation "a"b" already exists
Notice that the ERROR message contains single embedded quotes whereas
while specifying object there were double-quotes.
2.
postgres=# ALTER TABLE "a""b" ADD COLUMN y int;
ERROR: relation "a"b" does not exist
Here also the behavior is the same as in previous example
pg_class also shows this table with single quotes as follows:
16462 | a"b
--
With Regards,
Amit Kapila.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Haibo Yan | 2026-09-18 04:14:45 | Re: Global temporary tables |
| Previous Message | Chao Li | 2026-09-18 04:05:24 | pg_walinspect: add functions to locate and list WAL by time and LSN |