Re: Variadic polymorpic functions - Mailing list pgsql-general

From Vincenzo Romano
Subject Re: Variadic polymorpic functions
Date
Msg-id 3eff28921001221048v79918843v3350f493e0d74fe5@mail.gmail.com
Whole thread Raw
In response to Re: Variadic polymorpic functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Variadic polymorpic functions
List pgsql-general
2010/1/22 Tom Lane <tgl@sss.pgh.pa.us>:
> Vincenzo Romano <vincenzo.romano@notorand.it> writes:
>>> I think "variadic any" is exactly it, but too lazy to go look.
>
>> I fear there's no way!
>
>> tmp1=# CREATE FUNCTION q( fmt text, variadic args any )
>
> More like this:
>
> regression=# CREATE FUNCTION q( fmt text, variadic args "any" )
> regression-# RETURNS void
> regression-# LANGUAGE plpgsql
> regression-# AS $function$
> regression$# declare
> regression$# begin
> regression$# end;
> regression$# $function$;
> ERROR:  PL/pgSQL functions cannot accept type "any"
>
> ANY without quotes is a reserved word ...
>

And this would allow for a stdarg-like argument list?


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

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Variadic polymorpic functions
Next
From: Tom Lane
Date:
Subject: Re: Variadic polymorpic functions