Re: Variadic polymorpic functions

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

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.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Vincenzo Romano 2010-01-22 18:10:43 Re: Variadic polymorpic functions
Previous Message John R Pierce 2010-01-22 18:00:50 Re: When is the release date for Postgres 8.5?