Re: DEFAULT of domain ignored in plpgsql (8.4.1)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: DEFAULT of domain ignored in plpgsql (8.4.1)
Дата
Msg-id 14855.1258818734@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: DEFAULT of domain ignored in plpgsql (8.4.1)  (Josh Berkus <josh@agliodbs.com>)
Ответы Re: DEFAULT of domain ignored in plpgsql (8.4.1)
Список pgsql-hackers
Josh Berkus <josh@agliodbs.com> writes:
> (2) this change, while very useful, does change what had been a simple
> rule ("All variables are NULL unless specifically set otherwise") into a
> conditional one ("All variables are NULL unless set otherwise OR unless
> they are declared as domain types with defaults").  Do people feel that
> the new behavior would be sufficiently intuitive to avoid user confusion?

I'm inclined to leave it alone.  It complicates the mental model, and
frankly attaching defaults to domains was not one of the SQL committee's
better ideas anyway.  It's *fundamentally* non-orthogonal.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Proposal: USING clause for DO statement
Следующее
От: Gurjeet Singh
Дата:
Сообщение: Re: DEFAULT of domain ignored in plpgsql (8.4.1)