Re: Drop Foreign Key

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: Gregory Wood <gregw(at)com-stock(dot)com>
Cc: PostgreSQL-General <pgsql-general(at)postgresql(dot)org>
Subject: Re: Drop Foreign Key
Date: 2002-01-31 20:00:51
Message-ID: 20020131115953.F16538-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Thu, 31 Jan 2002, Gregory Wood wrote:

> I'd like to drop a foreign key constraint on a table. I know there are a
> number of triggers created by a FK, but how many, how do I find them to
> delete them, and what other gotchas might I find when removing the
> constaint(s)?
>
> It looks like there is an INSERT/UPDATE trigger on the main table, and two
> more on the table it's keyed into (one UPDATE, one DELETE)? If this is true,
> can I just delete those three triggers and be done with it?

You should probably use DROP TRIGGER on them, and you'll need to double
quote the trigger name.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brian Avis 2002-01-31 20:03:13 Re: going crazy with serial type
Previous Message Gregory Wood 2002-01-31 20:00:07 Re: going crazy with serial type