pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: plpython: Remove support for major version conflict detection
Date: Wed, 15 Oct 2025 06:22:52 +0000
Message-ID: <E1v8uuS-001lmf-1P@gemulon.postgresql.org> (raw)

plpython: Remove support for major version conflict detection

This essentially reverts commit 866566a690b, which installed
safeguards against loading plpython2 and plpython3 into the same
process.  We don't support plpython2 anymore, so this is obsolete.

The Python and PL/Python initialization now happens again in
_PG_init() rather than the first time a PL/Python call handler is
invoked.  (Often, these will be very close together.)

I kept the separate PLy_initialize() function introduced by
866566a690b to keep _PG_init() a bit modular.

Reviewed-by: Mario González Troncoso <gonzalemario@gmail.com>
Reviewed-by: Nathan Bossart <nathandbossart@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/9eb9feb6-1df3-4f0c-a0dc-9bcf35273111%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/594ba21bce05e8682eaf024f705fea8aeaba5ef3

Modified Files
--------------
src/pl/plpython/plpy_main.c | 65 +++------------------------------------------
1 file changed, 4 insertions(+), 61 deletions(-)



Message-ID: <E1v8uuS-001lmf-1P@gemulon.postgresql.org>
Permalink:  ../E1v8uuS-001lmf-1P@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1v8uuS-001lmf-1P@gemulon.postgresql.org

 · 

reply

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, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: plpython: Remove support for major version conflict detection
  In-Reply-To: <E1v8uuS-001lmf-1P@gemulon.postgresql.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