Postgresql – Event Trigger to apply triggers to new tables
I am trying to implement functionality to automatically apply triggers to any new "items" tables as they are created. I tried to do this using an EVENT TRIGGER, firstly with this function: CREATE OR REPLACE FUNCTION public.apply_trigger_on_item_table_creation() RETURNS event_trigger AS…