【问题标题】:equivalent of pragma autonomous_transaction of Oracle in postgres相当于 postgres 中 Oracle 的编译指示自治事务
【发布时间】:2017-01-10 10:02:46
【问题描述】:

在 oracle 中,有一种内置方法可以使事务自治,但在 Postgres 中没有(据我所知)。在 pl/pgsql 代码中应该做些什么来使 Postgres 中的自治事务功能等效?任何 hack 或绕过编码指南都会有所帮助。谢谢。

【问题讨论】:

标签: oracle postgresql transactions pragma


【解决方案1】:

目前,这样做的方法是使用dblink contrib 模块从数据库到自身的连接。

【讨论】:

  • dblink 是一个支持从数据库会话中连接到其他 PostgreSQL 数据库的模块,如文档所述。
  • 对。但您当然也可以从自身连接到数据库。
猜你喜欢
  • 2014-07-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-03-23
  • 1970-01-01
  • 1970-01-01
  • 2021-10-13
  • 2014-10-15
相关资源
最近更新 更多