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:30:49
Message-ID: 4658.1264185049@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:
> 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?

I think "variadic any" is exactly it, but too lazy to go look.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alban Hertroys 2010-01-22 18:40:04 Re: DDL question
Previous Message Vincenzo Romano 2010-01-22 18:21:26 Re: Variadic polymorpic functions