dblink can't update a table on the same database in an after UPDATE trigger

主宰稳场 提交于 2019-12-02 10:14:29

dblink operates by accessing the target database in a separate connection. This has a few inherent consequences:

  • dblink runs in a separate (quasi "autonomous") transaction.
  • Effects of dblink commands cannot be rolled back.

And most importantly for you:

  • Since it runs in a separate transaction it cannot see any changes of the calling transaction that have not been committed, yet.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!