Re: Variadic polymorpic functions - Mailing list pgsql-general

From Vincenzo Romano
Subject Re: Variadic polymorpic functions
Date
Msg-id 3eff28921001221010i73b092d9wcced87ec3a81c449@mail.gmail.com
Whole thread Raw
In response to Re: Variadic polymorpic functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Variadic polymorpic functions
List pgsql-general
2010/1/22 Tom Lane <tgl@sss.pgh.pa.us>:
> 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.

Understood.
So there's no way to have a function accepting a VARIADIC ANY. Right?


--
Vincenzo Romano
NotOrAnd Information Technologies
NON QVIETIS MARIBVS NAVTA PERITVS

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Variadic polymorpic functions
Next
From: Tom Lane
Date:
Subject: Re: Variadic polymorpic functions