On Wed, Dec 17, 2008 at 11:07 AM, Tom Lane <t...@sss.pgh.pa.us> wrote: > ISTM one could make a pretty good argument that this last case should > succeed, producing an empty-array argument. If you buy that, then it > is sensible to forbid defaults for variadics,
Yep, +1 for this approach. I would intuitively expect that, if I omit variadic argument(s) when calling a function, that the function ends up getting an empty array of the appropriate type. And when writing a variadic function, I wouldn't find it all surprising or annoying if I was not allowed to override this default. In the unlikely case I want my function to do something special when it gets an empty array, I can write that behaviour into the function body. Cheers, BJ -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers