Re: Dropping CHECK constraints

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au>
Cc: "Hackers" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Dropping CHECK constraints
Date: 2001-03-19 03:12:26
Message-ID: 3028.984971546@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Christopher Kings-Lynne" <chriskl(at)familyhealth(dot)com(dot)au> writes:
> In 7.0.3, is it safe to drop a check constraint by simply deleting it from
> the pg_relcheck table?

You'll need to adjust the relchecks count in the table's pg_class entry
as well.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2001-03-19 05:28:45 Re: Performance monitor signal handler
Previous Message Christopher Kings-Lynne 2001-03-19 03:02:56 RE: Dropping CHECK constraints