Re: Column 'CHECK' Constraint: bug or ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Column 'CHECK' Constraint: bug or ?
Дата
Msg-id 1362.1000958551@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Column 'CHECK' Constraint: bug or ?  (Keary Suska <hierophant@pcisys.net>)
Ответы Re: Column 'CHECK' Constraint: bug or ?
Список pgsql-general
Keary Suska <hierophant@pcisys.net> writes:
> It appears that Postgres checks column CHECK constraints when performing an
> update regardless of whether the particular column is being updated.

I believe that's true...

> Perhaps my understanding of column vs table constraints is incomplete
> but this doesn't seem to be proper behavior,

Why not?  A constraint is a constraint, it should be valid whenever one
checks it.

            regards, tom lane

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

Предыдущее
От: Keary Suska
Дата:
Сообщение: Column 'CHECK' Constraint: bug or ?
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: Column 'CHECK' Constraint: bug or ?