On Fri, Sep 1, 2017 at 12:20 AM, Melvin Davidson <melvin6925@xxxxxxxxx> 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 is not > 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 -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general