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

From Pavel Stehule
Subject Re: WIP: default values for function parameters
Date
Msg-id 162867790812110058l84fac53la206211f8da4702d@mail.gmail.com
Whole thread Raw
In response to Re: WIP: default values for function parameters  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Responses Re: WIP: default values for function parameters  (Bruce Momjian <bruce@momjian.us>)
Re: WIP: default values for function parameters  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
2008/12/10 Pavel Stehule <pavel.stehule@gmail.com>:
> 2008/12/10 Tom Lane <tgl@sss.pgh.pa.us>:
>> "Pavel Stehule" <pavel.stehule@gmail.com> writes:
>>> next argument - if we accept AS for param names, then we introduce
>>> nonconsistent behave with SQL/XML functions.
>>
>>> select xmlforest(c1, c2 as foo, c3) -- there foo isn't doesn't mean
>>> "use it as param foo",
>>
>> It could be read as meaning that, I think.
>>
>> In any case, I'm not wedded to using AS for this, and am happy to
>> consider other suggestions.

what do you thing about?

select fce(p1,p2,p3, SET paramname1 = val, paramname2 = val)

example
select dosome(10,20,30, SET flaga = true, flagb = false)

regards
Pavel Stehule

>
> me too
>
> regards
> Pavel Stehule
>
> But => isn't acceptable.
>>
>>                        regards, tom lane
>>
>


pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: Sync Rep: First Thoughts on Code
Next
From: Heikki Linnakangas
Date:
Subject: Re: Sync Rep: First Thoughts on Code