Re: pg_event_trigger_ddl_commands fails with cache lookup failed

From: Sven Klemm <sven(at)timescale(dot)com>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: pg_event_trigger_ddl_commands fails with cache lookup failed
Date: 2021-02-27 22:32:07
Message-ID: CAMCrgp38q2HYB0QgMAY_V0-Rg_Y0bMyPNYYOWgW6RzTXaD9TRQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

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.
Is catching the exception the only way to deal with this in caller or
is there another way to handle this gracefully?

--
Regards, Sven Klemm

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2021-02-28 00:20:59 Re: pg_event_trigger_ddl_commands fails with cache lookup failed
Previous Message Hamid Akhtar 2021-02-27 21:25:00 Re: Bug in error reporting for multi-line JSON