Re: Time to drop plpython2?
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@anarazel.de>
Cc: Peter Eisentraut <peter.eisentraut@enterprisedb.com>,
pgsql-hackers@postgresql.org
Date: 2022-03-07T20:05:03Z
Lists: pgsql-hackers
Attachments
- v6-0005-fixups.txt (text/x-diff) patch v6-0005
Andres Freund <andres@anarazel.de> writes: > Now that the BF has stabilized, I've rebased and cleaned up the patches I'd > posted earlier. Attached for the first time is my attempt at cleaning up the > docs. I looked through this quickly, and have a couple of nitpicks. The PGFILEDESC value for jsonb_plpython is worded randomly differently from those for hstore_plpython and ltree_plpython. I think we should make it match those. I also noted a couple of typos in the docs patch. See attached delta patch (I named it .txt in hopes of not confusing the cfbot). I kind of wonder if we still need "46.1. Python 2 vs. Python 3" at all. It certainly doesn't seem like it still deserves its position of honor as the first subsection. Perhaps move it down to be the last subsection? Also, grepping reveals that vcregress.pl still has two stray references to "plpythonu". I did not touch that here, but maybe that has something to do with the ci failure? > I did so far leave in the "major version conflict" detection stuff in > plpy_main.c - that could again be useful? I'm leaning towards removing it, I'd > hope that there's not again such a painful transition, and we have the git > history if needed. I think we should leave it in. I foresee that somebody will want to build plpython2u as an out-of-core extension, at least for a few years yet. If they do, and the core language does not have its half of that guard, it'd be bad. regards, tom lane
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