pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: jm.lessard@contactft.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15553: "ERROR: cache lookup failed for type 2" with a function the first time it run.
Date: Fri, 14 Dec 2018 15:26:30 -0500
Message-ID: <23950.1544819190@sss.pgh.pa.us> (raw)
In-Reply-To: <15553-a9453b116f1e3c75@postgresql.org>
References: <15553-a9453b116f1e3c75@postgresql.org>

=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> I got an "ERROR:  cache lookup failed for type 2" when a function is run for
> the first time in a session.

That certainly looks like a bug, but I can't replicate it from the
given instructions.

The function seems to expect that the current schema contains some
foreign key constraints, which it doesn't when I just follow your
script exactly.  However, even if I add a few more tables with
foreign-key relationships, all seems well.

Please provide a complete script that will reproduce the problem
starting from an empty database.  Also, have you got any extensions
loaded, or any unusual configuration settings?

			regards, tom lane




view thread (5+ messages)  latest in thread

Message-ID: <23950.1544819190@sss.pgh.pa.us>
Permalink:  ../23950.1544819190@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/23950.1544819190@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, jm.lessard@contactft.com
  Subject: Re: BUG #15553: "ERROR: cache lookup failed for type 2" with a function the first time it run.
  In-Reply-To: <23950.1544819190@sss.pgh.pa.us>
  References: <15553-a9453b116f1e3c75@postgresql.org> <23950.1544819190@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox