Re: drop check constraint - Mailing list pgsql-general

From Stephan Szabo
Subject Re: drop check constraint
Date
Msg-id Pine.BSF.4.21.0102070932350.49683-100000@megazone23.bigpanda.com
Whole thread Raw
In response to drop check constraint  ("Tamsin" <tg_mail@bryncadfan.co.uk>)
List pgsql-general
Yes.  You need to remove the row on pg_relcheck and then change the
value of relchecks for the row in pg_class for the relation the check
constraint is on.

On Wed, 7 Feb 2001, Tamsin wrote:

> Hello,
>
> Is it possible to drop a check constraint in any way without
> dropping/recreating the table?  I've managed to drop foreign key constraints
> by dropping the associated triggers, but check constraints don't seem to
> create triggers and there isn't an alter table drop constraint command.  Is
> there something I can do to the system tables?


pgsql-general by date:

Previous
From: Brice Ruth
Date:
Subject: Re: Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?
Next
From: "Thomas T. Thai"
Date:
Subject: Re: full text searching