Re: Column 'CHECK' Constraint: bug or ?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Keary Suska <hierophant(at)pcisys(dot)net>
Cc: Postgres General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Column 'CHECK' Constraint: bug or ?
Date: 2001-09-20 04:02:31
Message-ID: 1362.1000958551@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Keary Suska <hierophant(at)pcisys(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-09-20 05:21:16 Re: Column 'CHECK' Constraint: bug or ?
Previous Message Keary Suska 2001-09-20 02:33:59 Column 'CHECK' Constraint: bug or ?