天天看點

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>