Re: WIP: default values for function parameters - Mailing list pgsql-hackers

From Tom Lane
Subject Re: WIP: default values for function parameters
Date
Msg-id 13477.1228830371@sss.pgh.pa.us
Whole thread Raw
In response to Re: WIP: default values for function parameters  (Grzegorz Jaskiewicz <gj@pointblue.com.pl>)
List pgsql-hackers
Grzegorz Jaskiewicz <gj@pointblue.com.pl> writes:
> The default param that's in the middle. Would it be hard, or do anyone  
> objects against adding 'default' keyword there, so one doesn't have to  
> substitute default param 3, when he only wants to override 2nd in  
> funct(1,2,3) ?

Yes, and yes.  We can only allow eliminating parameters from the right,
else it becomes impossibly ambiguous.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Zdenek Kotala
Date:
Subject: Re: cvs head initdb hangs on unixware
Next
From: Simon Riggs
Date:
Subject: Re: Sync Rep: First Thoughts on Code