Re: Variadic parameters vs parameter defaults - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Variadic parameters vs parameter defaults
Date
Msg-id 1572.1229539204@sss.pgh.pa.us
Whole thread Raw
In response to Re: Variadic parameters vs parameter defaults  (Jeff Davis <pgsql@j-davis.com>)
List pgsql-hackers
Jeff Davis <pgsql@j-davis.com> writes:
> On Tue, 2008-12-16 at 19:07 -0500, Tom Lane wrote:
>> ISTM one could make a pretty good argument that this last case should
>> succeed, producing an empty-array argument.

> We had a similar discussion before, and you replied here:
> http://archives.postgresql.org/pgsql-patches/2008-07/msg00150.php

> Are you now in favor of allowing zero arguments for a variadic
> parameter?

No, not as such (at least not now that I've had a chance to digest the
alternatives).  The default-parameter mechanism gives us another
solution tool, but if you don't use a default then the same ambiguities
as before still exist.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Variadic parameters vs parameter defaults
Next
From: Tom Lane
Date:
Subject: Re: Variadic parameters vs parameter defaults