Re: Domains as Subtypes

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Domains as Subtypes
Дата
Msg-id 15135.1143477690@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Domains as Subtypes  (elein <elein@varlena.com>)
Ответы Re: Domains as Subtypes  (elein <elein@varlena.com>)
Список pgsql-hackers
elein <elein@varlena.com> writes:
> But I like the idea of centralizing the check in the input/output
> functions.  It seems clearer and cleaner.

I remembered the problem with doing it that way: an input function can't
enforce a domain NOTNULL constraint, because it won't even get invoked
for a null input value.  So there seems no way around having a special
case for domains in all places where I/O conversion is done.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Shared memory
Следующее
От: Tom Lane
Дата:
Сообщение: Why are default encoding conversions namespace-specific?