pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Eric Marsden <eric.marsden@risk-engineering.org>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: Cache lookup failed for type 34813 (CREATE TYPE AS ENUM + P/B/E insert, processor-specific)
Date: Fri, 21 Jun 2024 11:35:50 -0400
Message-ID: <595887.1718984150@sss.pgh.pa.us> (raw)
In-Reply-To: <2dcacb45-81c9-4c38-aa36-70e2dc8df487@risk-engineering.org>
References: <2dcacb45-81c9-4c38-aa36-70e2dc8df487@risk-engineering.org>

Eric Marsden <eric.marsden@risk-engineering.org> writes:
> I see a PostgreSQL error "cache lookup failed for type 34813" after the 
> following sequence of network requests over a single network connection 
> to PostgreSQL (which is otherwise idle):

> CREATE TYPE rating AS ENUM('ungood', 'good')
> CREATE TABLE act(name TEXT, value RATING)
> INSERT INTO act VALUES('thoughtcrime', 'ungood') -- OK
> INSERT INTO act VALUES('blackwhite', $1) -- with $1 = "good" / type oid for "rating" / text format

Interesting.  To clarify, are these commands run within a single
transaction, and if not where are the transaction boundaries?

Would you run this under log_error_verbosity = verbose and post the
full postmaster log entry for the failure, especially the LOCATION
data?  (Even better would be a stack trace from the errfinish call,
but perhaps LOCATION will be enough.)

			regards, tom lane





view thread (3+ messages)  latest in thread

Message-ID: <595887.1718984150@sss.pgh.pa.us>
Permalink:  ../595887.1718984150@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/595887.1718984150@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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, eric.marsden@risk-engineering.org, pgsql-bugs@lists.postgresql.org
  Subject: Re: Cache lookup failed for type 34813 (CREATE TYPE AS ENUM + P/B/E insert, processor-specific)
  In-Reply-To: <595887.1718984150@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