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

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: Bryan Green <dbryan(dot)green(at)gmail(dot)com>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Use Python "Limited API" in PL/Python
Date: 2026-01-05 07:55:08
Message-ID: 915e0c81-05e3-43f5-9c91-a3b7a5987454@eisentraut.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 02.01.26 19:12, Bryan Green wrote:
>> I have a patch that works around this by manually constructing the
>> Python dependency on MSVC to use python3.lib instead of python3XX.lib,
>> using cc.find_library('python3') and building the dependency with the
>> appropriate include directory. It passes CI when I push. I'll see what
>> cfbot thinks.
>>
>> Still testing, but wanted to share progress and get feedback on the
>> approach.
>>
>
> cfbot seems to be happy:
> https://cirrus-ci.com/github/postgresql-cfbot/postgresql/cf%2F6369

Another thing you could test is whether this actually makes the ABI
stable. So for example build PL/Python against Python 3.13 and then
install Python 3.14 (and uninstall 3.13 just to be sure) and then start
a server and run some PL/Python stuff.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Chao Li 2026-01-05 07:55:55 Re: Wrong comment for ReplicationSlotCreate
Previous Message Peter Eisentraut 2026-01-05 07:53:33 Re: Use Python "Limited API" in PL/Python