Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vgb2Z-00Fvqd-17 for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jan 2026 04:02:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vgb1Z-000bHn-0G for pgsql-hackers@arkaria.postgresql.org; Fri, 16 Jan 2026 04:01:25 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vgb1Y-000bHf-2Z for pgsql-hackers@lists.postgresql.org; Fri, 16 Jan 2026 04:01:25 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vgb1U-000kPu-2Q for pgsql-hackers@postgresql.org; Fri, 16 Jan 2026 04:01:24 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 60G41JBa1010364; Thu, 15 Jan 2026 23:01:19 -0500 From: Tom Lane To: =?UTF-8?B?5rSq5LyK?= cc: pgsql-hackers@postgresql.org Subject: Re: [PATCH] pl: fix can not build free-thread for plpython extension like 3.14t In-reply-to: References: Comments: In-reply-to =?UTF-8?B?5rSq5LyK?= message dated "Fri, 16 Jan 2026 10:36:38 +0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1010362.1768536079.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 15 Jan 2026 23:01:19 -0500 Message-ID: <1010363.1768536079@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk =3D?UTF-8?B?5rSq5LyK?=3D writes: > This patch fix can not build plpython for free-thread python like > python3.14t We've gone to fairly considerable trouble to switch to using Python's limited API, for reasons described here: https://www.postgresql.org/message-id/ee410de1-1e0b-4770-b125-eeefd4726a24= @eisentraut.org I don't see why we should abandon that for the convenience of somebody's evidently-nonstandard Python build. The proposed patch also breaks the header isolation that the separate plpython_system.h header is meant to maintain. Arguably we should have #define'd Py_LIMITED_API inside plpython_system.h, not where it is. But I don't feel a need to mess with that without a far better argument for why we should change this at all. regards, tom lane