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

From Tom Lane
Subject Re: Variadic parameters vs parameter defaults
Date
Msg-id 1023.1229537515@sss.pgh.pa.us
Whole thread Raw
In response to Re: Variadic parameters vs parameter defaults  ("Pavel Stehule" <pavel.stehule@gmail.com>)
List pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> 2008/12/17 Peter Eisentraut <peter_e@gmx.net>:
>> That looks like a bug to me.  Anything that you can do with 1 to N items
>> should also work for zero.

> no, when we discused about variadic functions we defined, so variadic
> parameter should not be empty Please, look to archive.

Yeah, the problem is to infer a datatype when there are no actual
arguments to look at.  If we wanted to drop "variadic anyarray" then
the corner case wouldn't be a problem, but that cure is worse than
the disease.
        regards, tom lane


pgsql-hackers by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: Variadic parameters vs parameter defaults
Next
From: Jeff Davis
Date:
Subject: Re: Variadic parameters vs parameter defaults