Re: Issues for named/mixed function notation patch

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: Issues for named/mixed function notation patch
Дата
Msg-id 162867790909262137y7a9ac557h341ed2be621998a0@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Issues for named/mixed function notation patch  (Jeff Davis <pgsql@j-davis.com>)
Ответы Re: Issues for named/mixed function notation patch  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
> "However, a named variadic argument can only be called the way shown in
> the example above. The VARIADIC keyword must not be specified and a
> variadic notation of all arguments is not supported. To use variadic
> argument lists you must use positional notation instead."
>
> What is the intended behavior? I think we should always require VARIADIC
> to be specified regardless of using named notation.
>

maybe we could to support variadic named parameters in future - then
using VARIADIC keyword should be necessary - like

foo(10 AS p1, 20 AS p1, 30 AS p3) is equalent of
foo(VARIADIC ARRAY[10,20] AS p1, 30 AS p3)

if we plan this feature, the VARIADIC keyword have to be mandatory.

Regards
Pavel Stehule

> I'm still reviewing the code.
>
> Regards,
>        Jeff Davis
>
>


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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: TODO item: Allow more complex user/database default GUC settings
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Using results from INSERT ... RETURNING