What is wrong with the trigger definition below? I intend it to execute the "calculate_dow" function whenever the "date" column is updated or inserted but it generates the following error ...
CREATE TRIGGER tr_calculate_dow
AFTER UPDATE OR INSERT OF date ON focusblu.events
FOR EACH ROW
EXECUTE PROCEDURE calculate_dow(date);
Failed to execute SQL : SQL CREATE TRIGGER tr_calculate_dow AFTER UPDATE OR INSERT OF date ON focusblu.events FOR EACH ROW EXECUTE PROCEDURE calculate_dow(date); failed : ERROR: syntax error at or near "OF" LINE 1: ...IGGER tr_calculate_dow AFTER UPDATE OR INSERT OF date ON... ^