I have a trigger that runs after insert on Foo. The trigger inserts a row into the log table. Unfortunately, this has been really buggy and so I want to create some isolation between the trigger and the insert on Foo. To be more specific, if the trigger errors, I dont want it to crash the insert which is what its doing now. How can I accomplish this? I’ve tried wrapping the place where the trigger does the insertion in a transaction (begin/commit) but that doesnt appear to fix it.