Re: Error dropping tables: "ERROR: could not find tuple

From: Arnau <arnaulist(at)andromeiberica(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: Re: Error dropping tables: "ERROR: could not find tuple
Date: 2006-05-09 13:04:21
Message-ID: 44609355.4090102@andromeiberica.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Arnau wrote:
> Hi all,
>
> I have problems droppping some tables in a DB running on postgreSQL
> 7.4.2. Below you have an example of what is happening:
>
> coltr_demo=# drop table agenda_users_groups;
> ERROR: could not find tuple for trigger 112070831
>
> I haven't found anything about how to solve this, anybody knows?
>
> Thanks

The solution I have done is:

select oid from pg_class where relname = 'agenda_users_groups';
oid
----------
27970458
(1 row)

begin;
delete from pg_class where oid = 27970458;
delete from pg_depend where objid = 27970458;
delete from pg_constraint where conrelid = 27970458;
commit;

Anybody knows if I should delete anything else?

--
Arnau

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Andy Shellam 2006-05-09 13:06:37 Re: Locallhost Windows installation
Previous Message System Consult 2006-05-09 13:01:30 Re: Locallhost Windows installation