Re: to_regtype() Raises Error

Поиск
Список
Период
Сортировка
От David G. Johnston
Тема Re: to_regtype() Raises Error
Дата
Msg-id CAKFQuwaxsAbuFk9Jwiw-=qoS5yTFax8v8ZY7iNm8AB5nF15oLA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: to_regtype() Raises Error  (Chapman Flack <chap@anastigmatix.net>)
Ответы Re: to_regtype() Raises Error  ("David E. Wheeler" <david@justatheory.com>)
Список pgsql-hackers
On Sunday, September 17, 2023, Chapman Flack <chap@anastigmatix.net> wrote:

In this one, both identifiers are part of the type name, and the
separator a little more flamboyant.

select to_regtype('character /* hi!
am I part of the type name? /* what, me too? */ ok! */ -- huh!
varying');
    to_regtype
-------------------
 character varying

So, maybe we should be saying:

Parses a string of text, extracts a potential type name from it, and translates that name into an OID.  Failure to extract a valid potential type name results in an error while a failure to determine that the extracted name is known to the system results in a null output.

I take specific exception to describing your example as a “textual type name”.

David J.

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

Предыдущее
От: Chapman Flack
Дата:
Сообщение: Re: to_regtype() Raises Error
Следующее
От: jian he
Дата:
Сообщение: Re: SQL:2011 application time