pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Alvaro Herrera <alvherre@alvh.no-ip.org>
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: Sun, 28 Feb 2021 13:16:06 -0300
Message-ID: <20210228161606.GA21845@alvherre.pgsql> (raw)
In-Reply-To: <CAMCrgp38q2HYB0QgMAY_V0-Rg_Y0bMyPNYYOWgW6RzTXaD9TRQ@mail.gmail.com>

On 2021-Feb-27, Sven Klemm wrote:

> Hello,
> 
> > 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
> 
> Is this expected behaviour or something that should be fixed?
> The documentation for pg_event_trigger_ddl_commands doesnt mention
> that it could fail for certain statements.

Yeah, this is certainly a bug.  The code should likely ignore the
sub-command.  I'll have a look.


-- 
Álvaro Herrera       Valdivia, Chile
"After a quick R of TFM, all I can say is HOLY CR** THAT IS COOL! PostgreSQL was
amazing when I first started using it at 7.2, and I'm continually astounded by
learning new features and techniques made available by the continuing work of
the development team."
Berend Tober, http://archives.postgresql.org/pgsql-hackers/2007-08/msg01009.php





view thread (6+ messages)

Message-ID: <20210228161606.GA21845@alvherre.pgsql>
Permalink:  ../20210228161606.GA21845@alvherre.pgsql/
Also on:    postgresql.org/message-id/20210228161606.GA21845@alvherre.pgsql

 · 

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: alvherre@alvh.no-ip.org, sven@timescale.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: pg_event_trigger_ddl_commands fails with cache lookup failed
  In-Reply-To: <20210228161606.GA21845@alvherre.pgsql>

* 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