Re: Modifying check constraints - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Modifying check constraints
Date
Msg-id 20011114112731.P97884-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Modifying check constraints  (Paulo Jan <admin@digital.ddnet.es>)
List pgsql-general
On Wed, 14 Nov 2001, Paulo Jan wrote:

> Hi all:
>
>         Let's suppose I create a table with a CHECK constraint, like:
>
>         CREATE TABLE blabla (id int, tipo varchar(8),
>         CHECK tipo IN ('tipo1', 'tipo2', 'tipo3'))
>
>         Can I change the CHECK constraint afterwards? For example, can I
> add another value that "tipo" can have, or I'd have to recreate the
> table?

Right now, I think you'd need to recreate, but 7.2 should let you drop
and re-add the check constraint.


pgsql-general by date:

Previous
From: Jason Earl
Date:
Subject: Re: Modifying check constraints
Next
From: Brent Verner
Date:
Subject: where can I get mailing list archives in mbox format?