Re: Column 'CHECK' Constraint: bug or ? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Column 'CHECK' Constraint: bug or ?
Date
Msg-id Pine.BSF.4.21.0109192216350.71501-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Column 'CHECK' Constraint: bug or ?  (Keary Suska <hierophant@pcisys.net>)
List pgsql-general
On Wed, 19 Sep 2001, Keary Suska wrote:

> It appears that Postgres checks column CHECK constraints when performing an
> update regardless of whether the particular column is being updated. Perhaps
> my understanding of column vs table constraints is incomplete but this
> doesn't seem to be proper behavior, and I can't find it documented anywhere.

If I read spec correctly, a column check constraint is equivalent to a
table constraint of the same search condition (and name and
attributes) for purposes of checking the constraint which means it should
be valid at end of transaction/statement depending on the constraint
attributes (and we don't support deferred check right now).



pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Column 'CHECK' Constraint: bug or ?
Next
From: Keary Suska
Date:
Subject: Re: Column 'CHECK' Constraint: bug or ?