Hi
I want to create a trigger in postgresql on insert into a table that calls the notification__new function to add a notification. However I need to pass the arguments from the insert to the notification__new function.
i.e. I want to have something like the followin
CREATE TRIGGER report_alert AFTER INSERT ON mytable FOR EACH ROW EXECUTE PROCEDURE notification__new(myarguments);
where myarguments includes some values out of the original row.
Is there a way to do this?
I havent been able to find it in the postgresql docs.
Thanks alot
David