Re: proposal: function parse_ident

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal: function parse_ident
Дата
Msg-id 17351.1440012803@sss.pgh.pa.us
обсуждение исходный текст
Ответ на proposal: function parse_ident  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal: function parse_ident  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> I miss a functionality that helps with parsing any identifier to basic
> three parts - database, schema, objectname. We have this function
> internally, but it is not available for SQL layer.

> FUNCTION parse_ident(IN ident text, OUT dbname text, OUT schemaname text,
> OUT objectname text)

What exactly would you do with this that would not be better done with,
for example, regclass?

Don't say "parse names for things other than tables".  Only a minority
of the types of objects used in the database have names that meet this
specification.
        regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Proposal: Implement failover on libpq connect level.
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: proposal: function parse_ident