Re: proposal: less strict input of regprocedure type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal: less strict input of regprocedure type
Дата
Msg-id 4224.1543693741@sss.pgh.pa.us
обсуждение исходный текст
Ответ на proposal: less strict input of regprocedure type  (Pavel Stehule <pavel.stehule@gmail.com>)
Ответы Re: proposal: less strict input of regprocedure type  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> input value of regrocedure type should be complete function signature.
> postgres=# select 'uni'::regprocedure;
> ERROR:  expected a left parenthesis
> LINE 1: select 'uni'::regprocedure;
>                ^

Yup.

> I think so it is not necessary, when function name is unique.

This doesn't seem like a great idea to me.  It will just encourage
people to write brittle code that falls over as soon as the name
isn't unique.  Also, if you're willing to assume that it is,
why not just use regproc?

            regards, tom lane


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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: proposal: less strict input of regprocedure type
Следующее
От: "Daniel Verite"
Дата:
Сообщение: Re: [HACKERS] Can ICU be used for a database's default sort order?