Re: Fix dropped object handling in pg_event_trigger_ddl_commands

Aleksander Alekseev <aleksander@timescale.com>

From: Aleksander Alekseev <aleksander@timescale.com>
To: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Cc: Sven Klemm <sven@timescale.com>, Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2021-06-07T09:44:42Z
Lists: pgsql-hackers

Attachments

Hi hackers,

> Any opinions on the patch? Is this not worth the effort to fix or is
> there a better way to fix this?

I confirm that the bug still exists in master (be57f216). The patch
fixes it and looks good to me. I changed the wording a little and
added a regression test. The updated patch is in the attachment. I
added this thread to the CF and updated the status to "Ready for
Committer".

-- 
Best regards,
Aleksander Alekseev

Commits

  1. Improve handling of dropped objects in pg_event_trigger_ddl_commands()

  2. Simplify some code in getObjectTypeDescription()