Re: WIP: default values for function parameters

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WIP: default values for function parameters
Дата
Msg-id 17091.1227533113@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: WIP: default values for function parameters  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Ответы Re: WIP: default values for function parameters  ("Pavel Stehule" <pavel.stehule@gmail.com>)
Список pgsql-hackers
"Pavel Stehule" <pavel.stehule@gmail.com> writes:
> 2008/11/24 Peter Eisentraut <peter_e@gmx.net>:
>> Could you explain why you store the default expressions in a new posexpr
>> type rather than in an array of text (compare pg_attrdef.adbin)?

> 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.

Say again?  The representation Peter is suggesting *is* what is used
in rules and views.  If you've re-invented that wheel, undo it.
        regards, tom lane


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

Предыдущее
От: "A. Kretschmer"
Дата:
Сообщение: Re: blatantly a bug in the documentation
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Minor race-condition problem during database startup