Re: proposal: disallow operator "=>" and use it for named parameters

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: proposal: disallow operator "=>" and use it for named parameters
Дата
Msg-id 32076.1426010567@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: proposal: disallow operator "=>" and use it for named parameters  (Kevin Grittner <kgrittn@ymail.com>)
Ответы Re: proposal: disallow operator "=>" and use it for named parameters  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-hackers
Kevin Grittner <kgrittn@ymail.com> writes:
> Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Presumably we are going to change it at some point; maybe we
>> should just do it rather than waiting another 5 years.

> +1

> It has been deprecated long enough that I don't see the point of waiting.

Uh, just to clarify, this has nothing to do with how long the operator has
been deprecated.  The issue is whether pg_dump should dump a function-call
syntax that will not be recognized by any pre-9.5 release, when there is
an alternative that will be recognized back to 9.0.

BTW, I just noticed another place that probably should be changed:

regression=# select foo(x => 1);
ERROR:  42883: function foo(x := integer) does not exist
LINE 1: select foo(x => 1);              ^
HINT:  No function matches the given name and argument types. You might need to add explicit type casts.
LOCATION:  ParseFuncOrColumn, parse_func.c:516
        regards, tom lane



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

Предыдущее
От: Kevin Grittner
Дата:
Сообщение: Re: proposal: disallow operator "=>" and use it for named parameters
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Precedence of standard comparison operators