fix crash with Python 3.11

Edit
ID 3481
Title fix crash with Python 3.11
Topic Bug Fixes
Created 2021-12-29 09:33:10
Last modified 2022-02-28 18:01:37 (2 years, 8 months ago)
Latest email 2022-02-24 19:34:05 (2 years, 8 months ago)
Status
2022-03: Committed
2022-01: Moved to next CF
Target version
Authors Peter Eisentraut (petere)
Reviewers Tom Lane (tgl)Become reviewer
Committer Tom Lane (tgl)
Links CFbot results (CirrusCI) CFbot GitHub
Checkout latest CFbot patchset Go to your local checkout of the PostgreSQL repository and run:
git remote add commitfest https://github.com/postgresql-cfbot/postgresql.git
git fetch commitfest cf/3481
git checkout commitfest/cf/3481
Emails
fix crash with Python 3.11
First at 2021-12-22 08:24:06 by Peter Eisentraut <peter.eisentraut at enterprisedb.com>
Latest at 2022-02-24 19:34:05 by Tom Lane <tgl at sss.pgh.pa.us>
Latest attachment (0001-start-new-xact-in-SPI-commit-rollback-3.patch) at 2022-02-24 19:34:05 from Tom Lane <tgl at sss.pgh.pa.us>
    Attachment (0001-start-new-xact-in-SPI-commit-rollback-3.patch) at 2022-02-24 19:34:05 from Tom Lane <tgl at sss.pgh.pa.us> (Patch: Yes)
    Attachment (start-new-xact-in-SPI-commit-rollback-2.patch) at 2022-02-24 18:17:38 from Tom Lane <tgl at sss.pgh.pa.us> (Patch: Yes)
    Attachment (start-new-xact-in-SPI-commit-rollback-1.patch) at 2022-02-23 19:31:22 from Tom Lane <tgl at sss.pgh.pa.us> (Patch: Yes)
    Attachment (python_commit_failure.sql) at 2022-02-07 22:38:01 from Tom Lane <tgl at sss.pgh.pa.us> (Patch: No)
    Attachment (v1-0001-Set-Python-exception-after-failed-commit-or-rollb.patch) at 2021-12-22 08:24:06 from Peter Eisentraut <peter.eisentraut at enterprisedb.com> (Patch: Yes)
History
When Who What
2022-02-28 18:01:37 Tom Lane (tgl) Closed in commitfest 2022-03 with status: Committed
2022-02-28 18:01:37 Tom Lane (tgl) Changed committer to tgl
2022-02-01 14:31:32 Peter Eisentraut (petere) Closed in commitfest 2022-01 with status: Moved to next CF
2022-01-16 22:54:09 Tom Lane (tgl) New status: Waiting on Author
2022-01-16 22:54:05 Tom Lane (tgl) Added tgl as reviewer
2021-12-29 09:33:27 Peter Eisentraut (petere) Changed authors to Peter Eisentraut (petere)
2021-12-29 09:33:11 Peter Eisentraut (petere) Attached mail thread 3375ffd8-d71c-2565-e348-a597d6e739e3@enterprisedb.com
2021-12-29 09:33:10 Peter Eisentraut (petere) Created patch record
Edit