Re: URGENT: dropping constraints and references from a

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: jerome <jerome(at)gmanmi(dot)tv>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: URGENT: dropping constraints and references from a
Date: 2003-01-20 17:31:26
Message-ID: 20030120093014.G66575-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Manfred Koizar 2003-01-20 17:34:52 Re: Altering a table - positioning new columns
Previous Message Stephan Szabo 2003-01-20 17:28:44 Re: reference to system table