Re: ERROR: cache lookup failed for type

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Stuart <sfbarbee(at)gmail(dot)com>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: ERROR: cache lookup failed for type
Date: 2015-08-17 03:16:35
Message-ID: 15241.1439781395@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Stuart <sfbarbee(at)gmail(dot)com> writes:
> I have been using a particular function for years without issue but
> recently tried the Alpha releases of PostGreSQL. I loaded the database
> into 9.5 Alpha1 release and did not have problems. After upgrading to
> Alpha2, I started getting this error on executing the function. I didn't
> reload the database this time as it should not be required.

> ERROR: cache lookup failed for type 1082
> CONTEXT: compilation of PL/pgSQL function "ds_stats" near line 1

That's odd.

> I dropped the function and can now not add it back to the database.

What happens when you try, exactly?

I assume the error was persistent across multiple sessions? Have you
changed the schema (rowtype) of table documents_statistics lately?

Does reindexing pg_type make the error go away? If so, what platform
and filesystem is this on?

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Stuart 2015-08-17 03:52:02 Re: ERROR: cache lookup failed for type
Previous Message Adrian Klaver 2015-08-17 01:17:53 Re: ERROR: cache lookup failed for type