Is there any way to prevent after_commit
hooks triggering on Postgres savepoints?
I can see some situations where savepoints may want to be treated as “commits” but in our case it’s harmful because we explicitly want to make sure the hook is only firing after a non simulated transaction.
Happy to open a PR if the functionality does not exist and is possible to implement.