Re: questions about not-null constraints and inheritance

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: questions about not-null constraints and inheritance
Дата
Msg-id 12187.1238693963@sss.pgh.pa.us
обсуждение исходный текст
Ответ на questions about not-null constraints and inheritance  ("K. Srinath" <k.srinath@gmail.com>)
Список pgsql-hackers
"K. Srinath" <k.srinath@gmail.com> writes:
> Why is this so?

Because we don't track inheritance state for attnotnull.  There is no
way you can make it work right with marginal hacking on the ATExec
code, because there just isn't enough state.

The correct fix is probably the one alluded to in another thread today:
make NOT NULL constraints have pg_constraint entries like CHECK
constraints do.  As of 8.4 there is enough info tracked for check
constraints (cf conislocal and coninhcount) to make inheritance handle
all these corner cases.
        regards, tom lane


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

Предыдущее
От: Werner Echezuria
Дата:
Сообщение: Re: Sort a column that does not exist
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: psql \d commands and information_schema