Re: Variadic polymorpic functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Variadic polymorpic functions
Дата
Msg-id 4165.1264183554@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Variadic polymorpic functions  (Vincenzo Romano <vincenzo.romano@notorand.it>)
Ответы Re: Variadic polymorpic functions  (Vincenzo Romano <vincenzo.romano@notorand.it>)
Список pgsql-general
Vincenzo Romano <vincenzo.romano@notorand.it> writes:
> I'm using the printf() function as seen here:
> http://wiki.postgresql.org/wiki/Sprintf

... which is "variadic anyarray".

> I was expecting that a "variadic polymorphic" function was able to
> accept a "variable number of arguments of different types" (a-la C),
> while it looks to me that it actually means "variable number of
> arguments of a single type".

Yup.  The array can only contain one element type.

            regards, tom lane

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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: When is the release date for Postgres 8.5?
Следующее
От: Vincenzo Romano
Дата:
Сообщение: Re: Variadic polymorpic functions