Skip site navigation (1) Skip section navigation (2)

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:21:26
Message-ID: 3eff28921001221021w5af5e081ic62427810e10e031@mail.gmail.com (view raw or flat)
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:
>> So there's no way to have a function accepting a VARIADIC ANY. Right?
>
> Not in PL functions.  You can do it in C if you're desperate (but you
> then have to deal with each argument individually --- they're not formed
> into an array).

How would then be declared such a function with the body written in C?

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

In response to

Responses

pgsql-general by date

Next:From: Tom LaneDate: 2010-01-22 18:30:49
Subject: Re: Variadic polymorpic functions
Previous:From: Tom LaneDate: 2010-01-22 18:19:59
Subject: Re: Variadic polymorpic functions

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group