在 oracle 中有一种内置的方法可以使事务自治,但在 Postgres 中没有(据我所知)。在 pl/pgsql 代码中应该做些什么来使 Postgres 中的自治事务功能等效?编码指南中的任何破解或旁路都会有所帮助。谢谢。
最佳答案
目前,执行此操作的方法是通过 dblink
使用从数据库到自身的连接。贡献模块。
关于oracle - 相当于 postgres 中 Oracle 的 pragma autonomous_transaction,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39289835/