On Fri, Sep 1, 2017 at 12:20 AM, Melvin Davidson <melvin6925@gmail.com> wrote:
> >you could just create an event trigger looking for CREATE TABLE as filter_value:
>
> I have tried that. Unfortunately, I have been unable to extract the table name from the event because TG_TABLE_NAME
isnot
> available during an event trigger, albeit perhaps I am missing something?
The function pg_event_trigger_ddl_commands() returns classid and
objid, which should map to respectively pg_class and the relation
created for a CREATE TABLE query, no?
--
Michael