pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sven Klemm <sven@timescale.com>
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: pg_event_trigger_ddl_commands fails with cache lookup failed
Date: Sat, 27 Feb 2021 19:20:59 -0500
Message-ID: <540819.1614471659@sss.pgh.pa.us> (raw)
In-Reply-To: <CAMCrgp38q2HYB0QgMAY_V0-Rg_Y0bMyPNYYOWgW6RzTXaD9TRQ@mail.gmail.com>
References: <CAMCrgp39V7JQA_Gc+JaEZV3ALOU1ZG=Pwyk3oDpTq7F6Z0JSmg@mail.gmail.com>
	<CAMCrgp38q2HYB0QgMAY_V0-Rg_Y0bMyPNYYOWgW6RzTXaD9TRQ@mail.gmail.com>

Sven Klemm <sven@timescale.com> writes:
>> trg=# ALTER TABLE t ALTER COLUMN f1 DROP IDENTITY, ALTER COLUMN f1 SET
>> DATA TYPE bigint;
>> ERROR:  XX000: cache lookup failed for relation 13476892
>> CONTEXT:  PL/pgSQL function ddl_end() line 5 at FOR over SELECT rows
>> LOCATION:  getRelationTypeDescription, objectaddress.c:4178

This is not what I'd call an adequate bug report.  I guessed at what you
might have started from, but it works for me:

regression=# create table t (f1 int generated always as identity);
CREATE TABLE
regression=# ALTER TABLE t ALTER COLUMN f1 DROP IDENTITY, ALTER COLUMN f1 SET
 DATA TYPE bigint;
ALTER TABLE

Having said that, this seems like it's in the same ball park as some
not-very-long-ago bug fixes in ALTER TABLE's sequence of operations.
Maybe you just need to update.

			regards, tom lane





view thread (6+ messages)  latest in thread

Message-ID: <540819.1614471659@sss.pgh.pa.us>
Permalink:  ../540819.1614471659@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/540819.1614471659@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, sven@timescale.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: pg_event_trigger_ddl_commands fails with cache lookup failed
  In-Reply-To: <540819.1614471659@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