Re: DEFAULT of domain ignored in plpgsql (8.4.1)

Поиск
Список
Период
Сортировка
От Florian G. Pflug
Тема Re: DEFAULT of domain ignored in plpgsql (8.4.1)
Дата
Msg-id 4B072F71.8050301@phlo.org
обсуждение исходный текст
Ответ на Re: DEFAULT of domain ignored in plpgsql (8.4.1)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: DEFAULT of domain ignored in plpgsql (8.4.1)
Список pgsql-hackers
Tom Lane wrote:
> "Florian G. Pflug" <fgp@phlo.org> writes:
>> It seems that pl/pgsql ignores the DEFAULT value of domains for
>> local variables.
> 
> The plpgsql documentation seems entirely clear on this:
> 
> The DEFAULT clause, if given, specifies the initial value assigned to
>  the variable when the block is entered. If the DEFAULT clause is not
>  given then the variable is initialized to the SQL null value.

Hm, must have missed that paragraph :-(. Sorry for that.

Would a patch that changes that have any chance of being accepted? Or is
the gain (not having to repeat the DEFAULT clause, and being able to
maintain it at one place instead of many) considered too small compared
to the risk of breaking existing code?

best regards,
Florian Pflug

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [INTERFACES] ecpg & 8.3 -> 8.4 migration
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Summary and Plan for Hot Standby