Thread: Python 3.11 vs. Postgres

Python 3.11 vs. Postgres

From
Tom Lane
Date:
According to [1], we need to stop including Python's <eval.h>.
I've not checked whether this creates any backwards-compatibility
issues.

            regards, tom lane

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2023272



Re: Python 3.11 vs. Postgres

From
Peter Eisentraut
Date:
On 24.11.21 04:07, Tom Lane wrote:
> According to [1], we need to stop including Python's <eval.h>.
> I've not checked whether this creates any backwards-compatibility
> issues.
> 
>             regards, tom lane
> 
> [1] https://bugzilla.redhat.com/show_bug.cgi?id=2023272

See attached patch.  The minimum Python version for this change is 2.4, 
which is the oldest version supported by PG10, so we can backpatch this 
to all live branches.
Attachment

Re: Python 3.11 vs. Postgres

From
Tom Lane
Date:
Peter Eisentraut <peter.eisentraut@enterprisedb.com> writes:
> On 24.11.21 04:07, Tom Lane wrote:
>> According to [1], we need to stop including Python's <eval.h>.

> See attached patch.  The minimum Python version for this change is 2.4, 
> which is the oldest version supported by PG10, so we can backpatch this 
> to all live branches.

LGTM.  Tested with v10 and prairiedog's Python 2.4.1.

            regards, tom lane