Re: pg_type name quotability

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pg_type name quotability
Дата
Msg-id 15966.1449069064@sss.pgh.pa.us
обсуждение исходный текст
Ответ на pg_type name quotability  (Kevin Wooten <kdubb@me.com>)
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: pg_type name quotability
Следующее
От: Nuno Zimas
Дата:
Сообщение: user can't access own database after creation