On Wednesday, August 30, 2023, Marc Millas <marc(dot)millas(at)mokadb(dot)com> wrote:
> Hi,
> the doc v15 states: " pg_event_trigger_ddl_commands returns a list of DDL commands
> executed by each user action, when invoked in a function attached to a
> ddl_command_end event trigger."
> When some ddl command is executed within a block, I would like to know if
> the event trigger fires when the line is executed or at commit time.
>
https://www.postgresql.org/docs/current/event-trigger-definition.html
There is nothing there about event execution being able to be deferred.
David J.