Re: ERROR: cache lookup failed for relation X

From: raghavendra t <raagavendra(dot)rao(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: cache lookup failed for relation X
Date: 2010-04-04 02:50:12
Message-ID: k2mbc7de5a31004031950pebd99d60t737c2d642b1b99fe@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-performance

Hi Tom,

Thank you for your Prompt reply..

Am getting this error only in the application level that too with multiple
sessions. By getting that error am assuming that the table has got dropped
in some other session.
I understood from here is that its not a serious problem to catalog
Corruption.
Regards
Raghavendra
On Sat, Apr 3, 2010 at 10:35 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:

> raghavendra t <raagavendra(dot)rao(at)gmail(dot)com> writes:
> > I am facing the error "cache lookup failed for relation X" in
> Postgres-8.4.2
> > [ when dropping the same table concurrently in two sessions ]
> > Could plese tell me, why this is generated and what is the cause.
>
> From the perspective of session B, the table disappeared after it had
> already found the table in the catalogs and obtained a lock on it.
> This is not readily distinguishable from a serious problem such as
> catalog corruption. While we could play dumb and just issue a
> "table does not exist" message as though we'd never found it in the
> catalog at all, that behavior could mask real problems, so it seems
> better to not try to hide that something unusual happened.
>
> In general I would say that an application that is trying to do this
> has got its own problems anyway --- how do you know which version of
> the table you're dropping, and that that's the right thing?
>
> regards, tom lane
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message raghavendra t 2010-04-04 02:52:00 Re: ERROR: cache lookup failed for relation X
Previous Message Merlin Moncure 2010-04-04 01:32:25 Re: Connection Pooling

Browse pgsql-performance by date

  From Date Subject
Next Message raghavendra t 2010-04-04 02:52:00 Re: ERROR: cache lookup failed for relation X
Previous Message Tom Lane 2010-04-03 17:05:09 Re: ERROR: cache lookup failed for relation X