When executing an UPSERT in #PostgreSQL it seems "new" and "old" in my trigger hold the same value. Expected behaviour?
Conversation
Replying to
1
Replying to
This is an AFTER trigger, you see. Those are generally used to modify other table. Only BEFORE triggers "intercept" UPDATEs.
2
Replying to
Also, since it's AFTER trigger, "RETURN NEW" could be replaced with "RETURN NULL" without consequence -- return value ignored.

