Re: Time to drop plpython2?
Peter Eisentraut <peter.eisentraut@enterprisedb.com>
From: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
To: Tom Lane <tgl@sss.pgh.pa.us>, Andres Freund <andres@anarazel.de>
Cc: pgsql-hackers@postgresql.org
Date: 2022-01-11T12:59:32Z
Lists: pgsql-hackers
On 15.11.21 19:52, Peter Eisentraut wrote: > I think we should just write to the build farm owners, we plan to drop > python2 support in, say, 60 days, please update your setup to use > python3 or disable python support. This discussion stalled. I think we should do *something* for PostgreSQL 15. I suspect at this point, the Meson move isn't going to happen for PostgreSQL 15. Even if the code were ready, which it is not, then this kind of thing would surely be something more sensible to put into PG16 early rather than PG15 late. So I'm setting aside any concerns about which Python 3.x is the appropriate minimum level. There is the discussion [0], which involves raising the minimum Python version from 2.6 to 2.7, which would affect some build farm members. But if we're going to drop 2.x anyway for PG15, say, then we don't need to spend time organizing a 2.6 to 2.7 transition. (Although backpatching might be required.) Also, I was recently doing some bug fixing work in PL/Python, and just getting a Python 2 installation is not straightforward these days on the sort of OS that might be on a development machine. So there is also that driver for dropping Python 2. I think what I wrote in the message I'm responding to is the best way forward, although maybe with less than 60 days now. Thoughts? [0]: https://www.postgresql.org/message-id/flat/c74add3c-09c4-a9dd-1a03-a846e5b2fc52%40enterprisedb.com
Commits
-
plpython: add missing plpython.h include to plpy_plpymodule.h
- 54c72eb5e5e6 15.0 landed
-
plpython: Adjust docs after removal of Python 2 support.
- 4228cabb72bb 15.0 landed
-
plpython: Code cleanup related to removal of Python 2 support.
- 9b7e24a2cb37 15.0 landed
-
plpython: Remove regression test infrastructure for Python 2.
- db23464715f4 15.0 landed
-
plpython: Remove plpythonu, plpython2u and associated transform extensions.
- 76a29adee749 15.0 landed
-
plpython: Reject Python 2 during build configuration.
- 19252e8ec938 15.0 landed
-
Add traceback information to PL/Python errors
- 2bd78eb8d51c 9.1.0 cited