Re: variadic flag doesn't work with "any" type - Mailing list pgsql-bugs

From Tom Lane
Subject Re: variadic flag doesn't work with "any" type
Date
Msg-id 29821.1291928919@sss.pgh.pa.us
Whole thread Raw
In response to variadic flag doesn't work with "any" type  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: variadic flag doesn't work with "any" type  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-bugs
Pavel Stehule <pavel.stehule@gmail.com> writes:
> There is missing expansion for variadic parameter from any array to
> real parameters when variadic type is "any".

That's not a bug, it's intentional.  Variadic any is intended to let the
C function accept any old parameter list.  We should not assume that we
should do something special with a parameter that happens to be an array.

Possibly variadic anyarray will do what you are after.

            regards, tom lane

pgsql-bugs by date:

Previous
From: Pavel Stehule
Date:
Subject: variadic flag doesn't work with "any" type
Next
From: Pavel Stehule
Date:
Subject: Re: variadic flag doesn't work with "any" type