From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org, Andrew Dunstan <andrew@dunslane.net>
To: Bryan Green <dbryan.green@gmail.com>
Subject: Re: pgsql: Enable Python Limited API for PL/Python on MSVC
Date: Thu, 15 Jan 2026 10:36:01 +0100
Message-ID: <397fa815-c0cc-4531-9d09-0be3cc72c59a@eisentraut.org> (raw)
In-Reply-To: <E1vfxZ0-000P6X-0h@gemulon.postgresql.org>
References: <E1vfxZ0-000P6X-0h@gemulon.postgresql.org>
This is failing on buildfarm member drongo:
<https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=drongo&br=master;.
AFAICT, this is the only buildfarm member that tests Python on
Windows, so we have no additional results to compare with. It did pass
on Cirrus CI. Andrew/Bryan, could you figure out how the Python
installation on drongo is different?
On 14.01.26 10:53, Peter Eisentraut wrote:
> Enable Python Limited API for PL/Python on MSVC
>
> Previously, the Python Limited API was disabled on MSVC due to build
> failures caused by Meson not knowing to link against python3.lib
> instead of python3XX.lib when using the Limited API.
>
> This commit works around the Meson limitation by explicitly finding
> and linking against python3.lib on MSVC, and removes the preprocessor
> guard that was disabling the Limited API on MSVC in plpython.h.
>
> This requires python3.lib to be present in the Python installation,
> which is included when Python is installed.
>
> Author: Bryan Green <dbryan.green@gmail.com>
> Discussion: https://www.postgresql.org/message-id/flat/ee410de1-1e0b-4770-b125-eeefd4726a24%40eisentraut.org
>
> Branch
> ------
> master
>
> Details
> -------
> https://git.postgresql.org/pg/commitdiff/2bc60f86219b00a9ba23efab8f4bb8de21e64e2a
>
> Modified Files
> --------------
> meson.build | 16 +++++++++++++++-
> src/pl/plpython/plpython.h | 4 ----
> 2 files changed, 15 insertions(+), 5 deletions(-)
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org, andrew@dunslane.net, dbryan.green@gmail.com
Subject: Re: pgsql: Enable Python Limited API for PL/Python on MSVC
In-Reply-To: <397fa815-c0cc-4531-9d09-0be3cc72c59a@eisentraut.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox