Re: variadic function support

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: variadic function support
Дата
Msg-id 27150.1216053497@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: variadic function support  (Jeff Davis <pgsql@j-davis.com>)
Список pgsql-patches
Jeff Davis <pgsql@j-davis.com> writes:
> I don't have a strong opinion, but allowing zero-argument variadic
> function calls -- and therefore causing foo(variadic int[]) and
> foo(variadic text[]) to conflict -- makes more sense than requiring one
> argument.

I hadn't even thought about that point, but the idea that those two
would conflict bothers me quite a lot.  Not least because there's no
reasonable way to enforce it with the existing unique indexes on pg_proc.
I think you'd have to leave the variadic argument out of proargtypes
altogether, and that seems mad.

            regards, tom lane

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

Предыдущее
От: Jeff Davis
Дата:
Сообщение: Re: variadic function support
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: Re: variadic function support