Attached is a patch to remove the "triggered data change" error check
from trigger.c, as well as pick up the performance improvements that
that allows (due to not having to save deferred trigger events as long).
I am not yet proposing to actually commit this, since the discussion
about whether it's a good idea is still ongoing in -hackers. But
Stephan seemed to want to have a copy for testing purposes, and I
thought other people might be interested too.
regards, tom lane