I thought I'd review this patch, since pgaudit uses the pg_event_trigger_dropped_objects function.
I went through the patch line by line, and I don't really have anything to say about it. I notice that there are some XXX/FIXME comments in the code, but it's not clear if those need to (or can be) fixed before the code is committed.
Everything else looks good. I think this is ready for committer.