Search Postgresql Archives

Re: Variadic polymorpic functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Vincenzo Romano <vincenzo.romano@xxxxxxxxxxx> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux