Re: cache lookup of relation 165058647 failed - Mailing list pgsql-general

From Tom Lane
Subject Re: cache lookup of relation 165058647 failed
Date
Msg-id 4508.1081946690@sss.pgh.pa.us
Whole thread Raw
In response to Re: cache lookup of relation 165058647 failed  (Richard Huxton <dev@archonet.com>)
Responses Re: cache lookup of relation 165058647 failed
Re: cache lookup of relation 165058647 failed
List pgsql-general
Richard Huxton <dev@archonet.com> writes:
> The error is complaining about a relation that used to have an OID of
> 165058647. This is almost certainly a temporary table. Are there any plpgsql
> functions referring to a temporary table, or do you create, drop, recreate
> tmp_table1 within the same connection?

The trace suggests this is happening immediately after connect, so the
last part doesn't sound right.  It could be a plpgsql function problem,
though the query doesn't look like it invokes any functions.

What I was wondering about was dangling references within a view, that
is a view referring to a table that no longer exists.  (That shouldn't
happen anymore in 7.3 and later, but if this is a pre-7.3 system then
it's possible.)  Does this query make use of any views, and if so do the
views change from time to time?

            regards, tom lane

pgsql-general by date:

Previous
From: Juris Krumins
Date:
Subject: Re: cache lookup of relation 165058647 failed
Next
From: Alex
Date:
Subject: Re: Filesystem vs. Postgres for images