Re: Use Python "Limited API" in PL/Python - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Use Python "Limited API" in PL/Python
Date
Msg-id a5bfa71f-6d07-405c-8e03-610046e04292@eisentraut.org
Whole thread Raw
In response to Re: Use Python "Limited API" in PL/Python  (Peter Eisentraut <peter@eisentraut.org>)
List pgsql-hackers
On 03.03.25 11:17, Peter Eisentraut wrote:
> Update for the hackers list: This patch set was briefly committed but 
> had to be reverted because it crashed on some older Python versions; see 
> [0].
> 
> I have locally reproduced the problem with Python 3.6 and 3.7; Python 
> 3.8 is ok.  This matches the results from the buildfarm.
> 
> I have poked at this a bit more but haven't gotten a good idea where or 
> how to fix it so far.  Help welcome.

I have figured this out.  There was a Python API change/bugfix between 
3.7 and 3.8 that directly affects this patch.  The relevant commit is 
<https://github.com/python/cpython/commit/364f0b0f19c>.  I have applied 
the workarounds described there to my patch set, and now it works for 
3.6 and 3.7 as well.
Attachment

pgsql-hackers by date:

Previous
From: Nathan Bossart
Date:
Subject: Re: doc: expand note about pg_upgrade's --jobs option
Next
From: Andrew Dunstan
Date:
Subject: Re: log_min_messages per backend type