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 162867790811241321u64c0bcecj604559f352bba82f@mail.gmail.com
Whole thread Raw
In response to Re: WIP: default values for function parameters  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: WIP: default values for function parameters
List pgsql-hackers
2008/11/24 Peter Eisentraut <peter_e@gmx.net>:
> On Monday 24 November 2008 11:40:31 Pavel Stehule wrote:
>> I would to implement named params - and there expressions, that are
>> used as default params, should not be continual. I don't store params
>> as array of text because I would to eliminate repeated expression's
>> parsing. So I use similar machanism used for rules or views.
>
> You mean you want to avoid repeated parsing of expressions in case the same
> expression is used as a default value for several parameters?  How common
> would that be?
>
no - I am reading default parameters in call statement parsing.
Default parameters are implemented similar to variadic functions - so
no changes on PL part - all changes are on caller part.

Pavel


pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Re: [COMMITTERS] pgsql: Add support for matching wildcard server certificates to the new
Next
From: Peter Eisentraut
Date:
Subject: Re: WIP: default values for function parameters