Add support for TRIGGER events that can fire for one or many of
INSERT, UPDATE and DELETE
The current syntax for triggers are:
The task is to replace trigger_event with:
Oracle and PostgreSQL both support this extension to CREATE TRIGGER.
PostgreSQL solves the issue witth information schema by duplicating the trigger for as many times as there are events.The primary key of the view triggers is because of this trigger_catalog, trigger_schema, event_object_table, trigger_name, event.
To distinguish which event fired the trigger, Oracle supports event flags:
We should also support this.