Re: BUG #1433: domain check constraint not checked when adding new column

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1433: domain check constraint not checked when adding new column
Дата
Msg-id 23950.1106594694@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #1433: domain check constraint not checked when adding new column  ("craig perras" <craigp98072@yahoo.com>)
Список pgsql-bugs
"craig perras" <craigp98072@yahoo.com> writes:
> Domain check constraint not checked when adding new column.

Hmm.  It does work for cases like

regression=# create domain posint int check (value > 0);
CREATE DOMAIN
regression=# alter table foo add column f5 posint default 0;
ERROR:  value for domain posint violates check constraint "posint_check"

I think the issue is that when you don't specify any default, the scan
of the table gets optimized away.

            regards, tom lane

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

Предыдущее
От: Edmund Bacon
Дата:
Сообщение: Re: BUG #1440: ecpg seg faults
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #1440: ecpg seg faults