Re: pg_type name quotability - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: pg_type name quotability
Date
Msg-id 15966.1449069064@sss.pgh.pa.us
Whole thread Raw
In response to pg_type name quotability  (Kevin Wooten <kdubb@me.com>)
List pgsql-jdbc
Kevin Wooten <kdubb@me.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
intoa specific instance where the table name needs to be quoted by the driver (e.g. “user”) but want to make sure it’s
alwaysvalid 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


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: pg_type name quotability
Next
From: Nuno Zimas
Date:
Subject: user can't access own database after creation