Re: WIP: default values for function parameters

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: WIP: default values for function parameters
Дата
Msg-id 162867790811241403p675f7efbnd6a2553aecf0cafe@mail.gmail.com
обсуждение исходный текст
Ответ на Re: WIP: default values for function parameters  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
2008/11/24 Peter Eisentraut <peter_e@gmx.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


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: WIP: default values for function parameters
Следующее
От: Emmanuel Cecchet
Дата:
Сообщение: Re: Transactions and temp tables