I'm writing a AFTER UPDATE trigger in postgresql.
Actualy I need to get at least one row after update in STATEMENT LEVEL trigger, but there is no OLD or NEW variable there.
In FOR EACH ROW trigger I didn't manage to find a sort of batch_last param. But to do my procedure FOR EACH ROW is expensive.
How can I do this?