Re: ERROR: cache lookup failed for type 14237017

From: Aleksey Tsalolikhin <atsaloli(dot)tech(at)gmail(dot)com>
To: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: ERROR: cache lookup failed for type 14237017
Date: 2010-09-21 21:30:15
Message-ID: AANLkTik0Nfyw+1QV7nD5z6GtkrF92w9AvitHYfgibTJb@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Tue, Sep 21, 2010 at 2:06 PM, Jens Wilke <jens(at)wilke(dot)org> wrote:
> On Dienstag, 21. September 2010, Aleksey Tsalolikhin wrote:
>> Yesterday, I had twelve thousand  "cache lookup failed for type N"
>> messages, like this:
>
>> What does "type 14237017" mean?
>
> pg_type oid

Dear Jens,

I am trying to understand your reply.

pg_type is a catalog of data types:
http://www.postgresql.org/docs/8.4/static/catalog-pg-type.html

An OID is a key to system table:
http://www.postgresql.org/docs/8.4/static/datatype-oid.html
I guess it's used to identify a row in a system table.

So PostgreSQL was trying to lookup a row in a system table and did
not find it in a cache.

>> What cache are we talking about?
>
> Did you alter a type before?

No. I don't even know how to alter a type.

> There's a bug in postgres, that prevents the plan cache to be
> invalidated on type changes. We ran into this bug as well on 8.4.4.

Is there a bug id or a URL for the bug, please? I'd like to study the
bug description to
understand it better.

Sincerely,
Aleksey

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jens Wilke 2010-09-21 22:10:21 Re: ERROR: cache lookup failed for type 14237017
Previous Message Dmitriy Igrishin 2010-09-21 21:19:06 Re: versioned pl/pgsql functions