Re: Variadic polymorpic functions - Mailing list pgsql-general

From Tom Lane
Subject Re: Variadic polymorpic functions
Date
Msg-id 4165.1264183554@sss.pgh.pa.us
Whole thread Raw
In response to Variadic polymorpic functions  (Vincenzo Romano <vincenzo.romano@notorand.it>)
Responses Re: Variadic polymorpic functions  (Vincenzo Romano <vincenzo.romano@notorand.it>)
List 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 by date:

Previous
From: John R Pierce
Date:
Subject: Re: When is the release date for Postgres 8.5?
Next
From: Vincenzo Romano
Date:
Subject: Re: Variadic polymorpic functions