Re: URGENT: dropping constraints and references from a - Mailing list pgsql-general

From Stephan Szabo
Subject Re: URGENT: dropping constraints and references from a
Date
Msg-id 20030120093014.G66575-100000@megazone23.bigpanda.com
Whole thread Raw
In response to URGENT: dropping constraints and references from a table  (jerome <jerome@gmanmi.tv>)
List pgsql-general
On Tue, 21 Jan 2003, jerome wrote:

> i was wondering is it possible to drop column refereces from tables without
> droping the table...

Yes, although prior to 7.3 it was difficult.
To remove a references constraint in 7.2 and below, you need to find the
three triggers that make up the constraint (1 on the table with the
constraint, 2 on the table that the constraint references) and drop them.
In 7.3, you can use alter table drop constraint I believe.



pgsql-general by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: reference to system table
Next
From: Manfred Koizar
Date:
Subject: Re: Altering a table - positioning new columns