I would like to call multiple procedures from a trigger in postgres.
CREATE TRIGGER fn_trigger_notify_ev
AFTER INSERT
ON public.event_notifications
FOR EACH ROW
EXECUTE PROCEDURE public.notify_events();
EXECUTE PROCEDURE public.notify_events_count();
I have been getting error messages after executing this command so please let me know, is it possible to call multiple procedures in a trigger?
Error message:
ERROR: syntax error at or near "public"
LINE 6: EXECUTE PROCEDURE public.notify_events_count();
^
********** Error **********
ERROR: syntax error at or near "public"
SQL state: 42601
Character: 167
Is there any method to call multiple procedures?