Re: Use Python "Limited API" in PL/Python

From: vignesh C <vignesh21(at)gmail(dot)com>
To: Peter Eisentraut <peter(at)eisentraut(dot)org>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>, Jakob Egger <jakob(at)eggerapps(dot)at>
Subject: Re: Use Python "Limited API" in PL/Python
Date: 2025-03-17 06:08:08
Message-ID: CALDaNm3eojpggKDD2Ku=w_VMi-HCk3iUHdsLB2gRUAjN6coD-A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Fri, 14 Mar 2025 at 14:11, Peter Eisentraut <peter(at)eisentraut(dot)org> wrote:
>
> On 05.03.25 17:40, Peter Eisentraut wrote:
> > 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.
>
> This has all been committed now.

I felt we can mark this commitfest entry at [1] to commited now.
[1] - https://commitfest.postgresql.org/patch/5416/

Regards,
Vignesh

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message David G. Johnston 2025-03-17 06:15:51 Re: Forbid to DROP temp tables of other sessions
Previous Message Shubham Khanna 2025-03-17 05:57:58 Re: Enhance 'pg_createsubscriber' to retrieve databases automatically when no database is provided.