Re: dropping foreign keys

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: dropping foreign keys
Date: 2001-12-14 01:42:18
Message-ID: 3C1958FA.6060500@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

What is the fktable and pktable? I tried 'fktable' and 'pktable' and neither of them worked.

And should I use the tgconstrname or tgname? I'm using tgconstrname.

Stephan Szabo wrote:

> On Thu, 13 Dec 2001 jks(at)selectacast(dot)net wrote:
>
>
>>I tried that, but it didn't work. I need to drop trigger <name> on
>><table>. I got the name from the pg_triggers table, but apparently they
>>are not associated with any table.
>>
>
> Two should be associated with the pktable and one with the fktable. I've
> done the drop trigger thing in the past, so unless someone's changed
> something it should work. The table names can be grabbed out of the
> args, I think generally the first trigger is the one on the fktable
> and the other two are the pktable ones.
>
>

--
Joseph Shraibman
jks(at)selectacast(dot)net
Increase signal to noise ratio. http://xis.xtenit.com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Stephan Szabo 2001-12-14 01:52:11 Re: dropping foreign keys
Previous Message Bob Jones 2001-12-14 01:12:51 Working on "SELECT * WHERE numeric_col = 2001.2" problem?