Re: RE: finding and removing a constraint...

From: Stephan Szabo <sszabo(at)megazone23(dot)bigpanda(dot)com>
To: chris markiewicz <cmarkiew(at)commnav(dot)com>
Cc: "'PostgreSQL-general'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: RE: finding and removing a constraint...
Date: 2001-03-20 21:41:22
Message-ID: Pine.BSF.4.21.0103201338390.30635-100000@megazone23.bigpanda.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-announce pgsql-general

On Tue, 20 Mar 2001, chris markiewicz wrote:

> okay, i screwed up. i dropped some triggers from a table. now that table
> is not accessible to me.
>
> can't drop it...can't select...can't pg_dump.
>
> message is error: RelationBuildTriggers: 2 record(s) not found for rel
> accessor_group
>
> or a pg_dump results in: getTables(): relation 'accessor_group': 6 Triggers
> were expected, but got 4.
>
> is there any way that i can re-insert them?
>
> if i'm screwed, then how do i drop this table?

Okay... (you should really use drop trigger, not deleting from
pg_trigger).

You need to set reltriggers on the pg_class row for the table.
Probably something like:
update pg_class set reltriggers=4 where relname='accessor_group';

In response to

Responses

Browse pgsql-announce by date

  From Date Subject
Next Message Tom Lane 2001-03-20 21:42:46 Re: RE: finding and removing a constraint...
Previous Message Stephan Szabo 2001-03-20 21:38:22 Re: finding and removing a constraint...

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-03-20 21:42:46 Re: RE: finding and removing a constraint...
Previous Message Stephan Szabo 2001-03-20 21:38:22 Re: finding and removing a constraint...