I hope that someone can help. Currently I'm working with a PostgreSQL database but I really don't know how I can solve my problem. In PLSQL there are operations inside a trigger called 'INSERTING, UPDATING, DELETING'. But when it comes to PostgreSQL I'm baffered...
In Oracle I can do this:
v_action CHAR(1) := CASE WHEN INSERTING THEN "I" WHEN UPDATING THEN "U" WHEN DELETING THEN "D" END;
TG_OP?..