From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Kevin Wooten <kdubb(at)me(dot)com> |
Cc: | List <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: pg_type name quotability |
Date: | 2015-12-02 15:11:04 |
Message-ID: | 15966.1449069064@sss.pgh.pa.us |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Kevin Wooten <kdubb(at)me(dot)com> writes:
> Does anybody know if the name of a type/table in these system tables is guaranteed to be in a quotable format? Ran into a specific instance where the table name needs to be quoted by the driver (e.g. user) but want to make sure its always valid to quote the name from pg_type.
AFAIK, locutions like quote_ident(pg_type.typname) should always
work, keeping in mind the possible need to schema-qualify as well.
This will often not give you what you might think is the most common
name for the type, but it will parse correctly.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Nuno Zimas | 2015-12-02 16:45:37 | user can't access own database after creation |
Previous Message | Dave Cramer | 2015-12-02 13:37:13 | Re: pg_type name quotability |