Re: Variadic polymorpic functions

From: Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)it>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PostgreSQL General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Variadic polymorpic functions
Date: 2010-01-22 18:10:43
Message-ID: 3eff28921001221010i73b092d9wcced87ec3a81c449@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2010/1/22 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
> Vincenzo Romano <vincenzo(dot)romano(at)notorand(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-01-22 18:19:59 Re: Variadic polymorpic functions
Previous Message Tom Lane 2010-01-22 18:05:54 Re: Variadic polymorpic functions