Re: Function with defval returns error - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Function with defval returns error
Date
Msg-id 25595.1229610978@sss.pgh.pa.us
Whole thread Raw
In response to Re: Function with defval returns error  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
Peter Eisentraut <peter_e@gmx.net> writes:
> Tom Lane wrote:
>> This case *must* work:
>> 
>> create function foo (f1 int)
>> create function foo (f1 int, f2 int = 42)
>> 
>> select foo(10)

> I tried out C++, and it rejects this case:
> ...
> So, I'd rather reject the foo(10) call.  The least-defaults rule doesn't 
> strike me as very appealing.

OK, I think we're in agreement on this.  I'll make it happen.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: DTrace probes patch
Next
From: Peter Eisentraut
Date:
Subject: Re: Preventing index scans for non-recoverable index AMs