Re: ERROR: cache lookup failed for type 0

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Michael Harris \(BR/EPA\)" <michael(dot)harris(at)ericsson(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ERROR: cache lookup failed for type 0
Date: 2007-05-25 13:52:27
Message-ID: 8255.1180101147@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

"Michael Harris \(BR/EPA\)" <michael(dot)harris(at)ericsson(dot)com> writes:
> Whenever any kind of query is done on the table below, this is the
> result:

> ispdb_vxe=> select * from pm.carrier_on_13642;
> ERROR: cache lookup failed for type 0

Hmm, seems like something happened to your system catalogs, but where
exactly? Try this:

select * from pg_attribute where attrelid = 'pm.carrier_on_13642'::regclass;

and look whether any of the atttypid fields are zero. If so, does
anything else look wrong? If not, the problem must be further afield
--- have you got any triggers, check constraints, etc on this table?
(Can you do "\d" on it?)

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Scott Marlowe 2007-05-25 14:45:05 Re: Delete with subquery deleting all records
Previous Message Gregory Stark 2007-05-25 13:50:23 Re: Wired behavor with LIMIT