天天看点

PostgreSQL 10.0 preview 功能增强 - 匿名、自治事务(Oracle 兼容性)

postgresql , 10.0 , 匿名事务 , 自治事务

postgresql 10.0 通过session backendground实现了匿名事务,从此可以愉快的支持oracle存储过程的自治事务了。

此前,我们需要通过dblink实现,或者通过匿名块+exception来实现,比较繁琐。

<a href="https://github.com/digoal/blog/blob/master/201611/20161104_01.md">《postgresql oracle 兼容性之 - plpgsql 自治事务(autonomous_transaction)补丁》</a>

<a href="https://github.com/digoal/blog/blob/master/201602/20160203_02.md">《postgresql oracle 兼容性之 - 函数 自治事务 的写法和实现》</a>

这个patch的讨论,详见邮件组,本文末尾url。

postgresql社区的作风非常严谨,一个patch可能在邮件组中讨论几个月甚至几年,根据大家的意见反复的修正,patch合并到master已经非常成熟,所以postgresql的稳定性也是远近闻名的。

<a href="https://commitfest.postgresql.org/13/873/">https://commitfest.postgresql.org/13/873/</a>

<a href="https://www.postgresql.org/message-id/flat/[email protected]#[email protected]">https://www.postgresql.org/message-id/flat/[email protected]#[email protected]</a>