Re: 8.3.7, 'cache lookup failed' for a table - Mailing list pgsql-general

From Glyn Astill
Subject Re: 8.3.7, 'cache lookup failed' for a table
Date
Msg-id 331871.36438.qm@web23605.mail.ird.yahoo.com
Whole thread Raw
In response to Re: 8.3.7, 'cache lookup failed' for a table  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
Responses Re: 8.3.7, 'cache lookup failed' for a table  (Grzegorz Jaśkiewicz <gryzman@gmail.com>)
List pgsql-general
Hi Grzegorz,

Is it always the same OID(s)?

Usually this means something somewhere has a link to an OID that has been removed.

You could try digging through pg_catalog lookng for an oid column that refers to the OID in question.

In my experience, when a slony 1.2.x slave is involved, this usually means a relation was dropped without first
droppingit from replication using DROP TABLE.  In this case it may be a trigger on a table that has been "disabled" by
slony,it does this by changing pg_trigger.tgrelid to point to an index on the table in question rather than the table
itself. Thus when the table is dropped the trigger is left behind, pointing to an index that isn't there.  I' probably
startwith "select * from "pg_catalog".pg_trigger where tgrelid = <the OID that doesn't exist>", and prune from there. 

Glyn

--- On Wed, 12/5/10, Grzegorz Jaśkiewicz <gryzman@gmail.com> wrote:

> From: Grzegorz Jaśkiewicz <gryzman@gmail.com>
> Subject: Re: [GENERAL] 8.3.7, 'cache lookup failed' for a table
> To: pgsql-general@postgresql.org
> Date: Wednesday, 12 May, 2010, 10:33
> anyone please ?
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>




pgsql-general by date:

Previous
From: Alban Hertroys
Date:
Subject: Re: 8.3.7, 'cache lookup failed' for a table
Next
From: Grzegorz Jaśkiewicz
Date:
Subject: Re: 8.3.7, 'cache lookup failed' for a table