Re: Calling PL functions with named parameters - Mailing list pgsql-hackers

From Gaetano Mendola
Subject Re: Calling PL functions with named parameters
Date
Msg-id 411E2364.5020204@bigfoot.com
Whole thread Raw
In response to Re: Calling PL functions with named parameters  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-hackers
Oliver Jowett wrote:

> Gaetano Mendola wrote:
> 
>>  >>>> Oliver Jowett wrote:
>>  >>>>
>>  >>>>> David Fetter wrote:
>>  >>>>>
>>  >>>>>> Dennis has pointed out that mixing the call-with-named-parameter
>>  >>>>>> interface with call-by-order-of-parameters one would cause 
>> confusion,
>>  >>>>>
>>  >>>>> Python's equivalent syntax allows you to mix the two forms so long
>>  >>>>> as all the by-position parameters come first:
> 
> 
>> I'm worried about:
>>
>> (1) foo( integer, float);
>> (2) foo( integer, integer, float a = 3 );
>>
>> which one is called with:   foo( 2, 2 )?
> 
> 
> This is a separate issue to the one I was discussing above. I am not 
> talking about default arguments at all here; I am talking about mixing 
> positional parameter syntax with named parameter syntax.

I see.


Regards
Gaetano Mendola




pgsql-hackers by date:

Previous
From: Gaetano Mendola
Date:
Subject: Re: PITR on Windows?
Next
From: Andrew Dunstan
Date:
Subject: Re: PITR on Windows?