From: | Honza Horak <hhorak(at)redhat(dot)com> |
---|---|
To: | pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | PostgreSQL 14.3 plpython not compatible with Python 3.11 |
Date: | 2022-05-31 18:36:19 |
Message-ID: | CA+HKMWMY_e2otmTJDjKUAvC8Urh4rzSWOPZ=fszU5brkBP97ng@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
The regression tests for plpython fail with PostgreSQL 14.3 when trying to
build it with the 3.11 (available for testing in a copr build, see below).
Steps to Reproduce:
1. set up a local mock config with Python 3.11 as described in the copr:
https://copr.fedorainfracloud.org/coprs/g/python/python3.11/
2. build postgresql 14.3
Actual results:
More cases of the following failures:
=== make failure: src/pl/plpython/regression.diffs ===
diff -U3
/builddir/build/BUILD/postgresql-14.3/src/pl/plpython/expected/python3/plpython_transaction.out
/builddir/build/BUILD/postgresql-14.3/src/pl/plpython/results/python3/plpython_transaction.out
---
/builddir/build/BUILD/postgresql-14.3/src/pl/plpython/expected/python3/plpython_transaction.out
2022-05-31 20:02:30.754782055 +0200
+++
/builddir/build/BUILD/postgresql-14.3/src/pl/plpython/results/python3/plpython_transaction.out
2022-05-31 20:02:32.867788655 +0200
@@ -70,10 +70,8 @@
return 1
$$;
SELECT transaction_test3();
-ERROR: spiexceptions.InvalidTransactionTermination: invalid transaction
termination
+ERROR: SystemError: unknown opcode
CONTEXT: Traceback (most recent call last):
- PL/Python function "transaction_test3", line 2, in <module>
- plpy.execute("CALL transaction_test1()")
PL/Python function "transaction_test3"
SELECT * FROM test1;
a | b
@@ -88,10 +86,8 @@
Also reported as:
https://bugzilla.redhat.com/show_bug.cgi?id=2092085
Regards,
Honza
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2022-05-31 18:42:32 | Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY |
Previous Message | Alvaro Herrera | 2022-05-31 17:35:58 | Re: BUG #17485: Records missing from Primary Key index when doing REINDEX INDEX CONCURRENTLY |