Re: Drop foreign keys

From: Andreas Schlegel <schlegelaw(at)gmx(dot)de>
To:
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Drop foreign keys
Date: 2003-01-08 22:56:17
Message-ID: 3E1CAC91.6040108@gmx.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Stephan Szabo wrote:

>On Wed, 8 Jan 2003, Andreas Schlegel wrote:
>
>
>>I found 3 constrains for this reference. I dropped successfully the
>>first. But when I tried to drop the second and the third I got the message:
>>"ERROR: DropTrigger: there is no trigger RI_ConstraintTrigger_494494 on
>>relation tperson. "
>>
>>I checked the table (\d tperson) and indeed they diappeared. But I in
>>the table pg_trigger I still see the the other, which were refused to drop!
>>
>>Any idea what went wrong?
>>
>>
>
>Two of the triggers actually exist on the table the reference was to (not
>the table making the reference). I'd forgotten to mention that in the
>above, sorry.
>
That's it! Now all trigger concerning the two tables are removed.

Thanks for help,
Andreas

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joseph Shraibman 2003-01-08 23:31:07 Character Encoding WAS: ArrayIndexOutOfBoundsException in Encoding.decodeUTF8()
Previous Message Tom Lane 2003-01-08 22:36:38 Re: PgSQL 7.3: /opt/pgsql/bin/postgres: Execute permission denied.