Re: cache lookup of relation 165058647 failed

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Richard Huxton <dev(at)archonet(dot)com>
Cc: Juris Krumins <juriskr(at)komin(dot)lv>, pgsql-general(at)postgresql(dot)org
Subject: Re: cache lookup of relation 165058647 failed
Date: 2004-04-14 12:44:50
Message-ID: 4508.1081946690@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-general

Richard Huxton <dev(at)archonet(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message PostgreSQL Bugs List 2004-04-14 13:51:46 BUG #1132: I can't connection to Postgresql
Previous Message Juris Krumins 2004-04-14 12:18:02 Re: cache lookup of relation 165058647 failed

Browse pgsql-general by date

  From Date Subject
Next Message Alex 2004-04-14 13:15:51 Re: Filesystem vs. Postgres for images
Previous Message Juris Krumins 2004-04-14 12:18:02 Re: cache lookup of relation 165058647 failed