From: Joseph Shraibman <jks@selectacast.net>
To: Stephan Szabo <sszabo@megazone23.bigpanda.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: dropping foreign key
Date: Wed, 24 Oct 2001 17:12:31 -0400
Message-ID: <3BD72EBF.5020709@selectacast.net> (raw)
References: <Pine.BSF.4.21.0110232203040.54194-100000@megazone23.bigpanda.com>
Can I just set tgenabled to false?
Stephan Szabo wrote:
> On Tue, 23 Oct 2001, Joseph Shraibman wrote:
>
>
>>I have to drop a froeign key from one of my tables. The problem is that I have another
>>table that has a foreign key on the first one, so I can't do the select to temp-table
>>thing and move it back.
>>
>>Is there any way I can remove it by mucking with pg's internal tables?
>>
>
> Yeah. All you should need to do is remove the three triggers that
> were created for the constraint (1 on the fk table, 2 on the pk table).
> You can find them in pg_trigger and you'll need to double quote the
> names for the drop trigger statements because they're mixed case.
>
>
--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio. http://www.targabot.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: jks@selectacast.net, sszabo@megazone23.bigpanda.com
Subject: Re: dropping foreign key
In-Reply-To: <3BD72EBF.5020709@selectacast.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox