Re: Fix dropped object handling in pg_event_trigger_ddl_commands

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: Michael Paquier <michael@paquier.xyz>
Cc: Alvaro Herrera <alvherre@alvh.no-ip.org>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>, Sven Klemm <sven@timescale.com>
Date: 2021-06-11T08:00:40Z
Lists: pgsql-hackers

Attachments

Hi Michael,

> /* The type can never be NULL */
> type = getObjectTypeDescription(&addr, true);

The last argument should be `false` then.


--
Best regards,
Aleksander Alekseev

Commits

  1. Improve handling of dropped objects in pg_event_trigger_ddl_commands()

  2. Simplify some code in getObjectTypeDescription()