Re: fix crash with Python 3.11
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Cc: exclusion@gmail.com, pgsql-hackers@lists.postgresql.org
Date: 2022-02-24T18:17:38Z
Lists: pgsql-hackers
Attachments
- start-new-xact-in-SPI-commit-rollback-2.patch (text/x-diff) patch
I wrote: > * It might be a good idea to add parallel test cases for the other PLs. As I suspected, plperl and pltcl show exactly the same problems when trapping a failure at commit, reinforcing my opinion that this is a SPI bug that needs to be fixed in SPI. (plpgsql is not subject to this problem, because its only mechanism for trapping errors is a BEGIN block, ie a subtransaction, so it won't get to the interesting part.) They do have logic to catch the thrown error, though, so no additional fix is needed in either once we fix the core code. v2 attached adds those test cases. regards, tom lane
Commits
-
Re-add SPICleanup for ABI compatibility in stable branch
- 6d61aef5dbb6 11.17 landed
- 9af9e2094dcf 12.12 landed
- b2c8d56618b8 13.8 landed
- 8657946d375f 14.5 landed
-
Fix SPI's handling of errors during transaction commit.
- cfc86f987349 13.8 landed
- 2f6b8c287b88 11.17 landed
- 293f5c5f496c 12.12 landed
- 604651880c71 14.5 landed
- 2e517818f4af 15.0 landed
-
Don't use static storage for SaveTransactionCharacteristics().
- 12d768e70497 15.0 landed