Re: variadic function support - Mailing list pgsql-patches

From Tom Lane
Subject Re: variadic function support
Date
Msg-id 10489.1214362149@sss.pgh.pa.us
Whole thread Raw
In response to Re: variadic function support  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: variadic function support
Re: variadic function support
Re: variadic function support
Re: variadic function support
Re: variadic function support
List pgsql-patches
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
>> Tom Lane wrote:
>>> Your point about the syntax is good though.  It would be better if
>>> the syntax were like
>>> create function foo (a text, variadic b int[])
>>> or maybe even better
>>> create function foo (a text, variadic b int)

> I don't see problem with your syntax. It well block combination OUT
> and VARIADIC parameter - my one request, variadic parameter have to be
> array.

Well, we should certainly store the parameter type as an array in
proargtypes, because that makes this feature transparent to all the
PLs.  However, it doesn't follow that the CREATE FUNCTION syntax
has to specify the array type rather than the element type.  I think
the Java precedent might be good reason to go with using the element
type in the function declaration.

            regards, tom lane

pgsql-patches by date:

Previous
From: Tom Lane
Date:
Subject: Re: [HACKERS] Patch for Prevent pg_dump/pg_restore from being affected by statement_timeout
Next
From: daveg
Date:
Subject: Re: [HACKERS] Patch for Prevent pg_dump/pg_restore from being affected by statement_timeout