From: | "Pavel Stehule" <pavel(dot)stehule(at)gmail(dot)com> |
---|---|
To: | "Peter Eisentraut" <peter_e(at)gmx(dot)net> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: WIP: default values for function parameters |
Date: | 2008-11-24 22:03:02 |
Message-ID: | 162867790811241403p675f7efbnd6a2553aecf0cafe@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
2008/11/24 Peter Eisentraut <peter_e(at)gmx(dot)net>:
> On Monday 24 November 2008 23:21:15 Pavel Stehule wrote:
>> > 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.
>
> Then I don't understand why you need this special data type instead of using
> an array of text with nulls for parameters without default.
>
I expect some overhead with classic array - but this overhead will be
small and array of text with nulls is better variant, Tomorrow I'll
send updated version.
Regards
Pavel Stehule
From | Date | Subject | |
---|---|---|---|
Next Message | Emmanuel Cecchet | 2008-11-24 23:23:43 | Re: Transactions and temp tables |
Previous Message | Peter Eisentraut | 2008-11-24 21:44:36 | Re: WIP: default values for function parameters |