From: | Andres Freund <andres(at)anarazel(dot)de> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: plpython: Code cleanup related to removal of Python 2 support. |
Date: | 2022-03-08 02:37:01 |
Message-ID: | E1nRPif-001PtO-1Q@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
plpython: Code cleanup related to removal of Python 2 support.
Since 19252e8ec93 we reject Python 2 during build configuration. Now that the
dust on the buildfarm has settled, remove Python 2 specific code, including
the "Python 2/3 porting layer".
The code to detect conflicts between plpython using Python 2 and 3 is not
removed, in case somebody creates an out-of-tree version adding back support
for Python 2.
Reviewed-By: Peter Eisentraut <peter(at)eisentraut(dot)org>
Reviewed-By: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/20211031184548.g4sxfe47n2kyi55r@alap3.anarazel.de
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/9b7e24a2cb37fb52af13219f625cd719e364a346
Modified Files
--------------
contrib/hstore_plpython/hstore_plpython.c | 12 +++----
contrib/jsonb_plpython/jsonb_plpython.c | 27 ++++++--------
contrib/ltree_plpython/ltree_plpython.c | 6 +---
src/pl/plpython/plpy_cursorobject.c | 8 ++---
src/pl/plpython/plpy_elog.c | 26 ++++++--------
src/pl/plpython/plpy_exec.c | 44 +++++++++++------------
src/pl/plpython/plpy_main.c | 59 ++++++-------------------------
src/pl/plpython/plpy_planobject.c | 2 +-
src/pl/plpython/plpy_plpymodule.c | 32 +++++------------
src/pl/plpython/plpy_plpymodule.h | 2 --
src/pl/plpython/plpy_resultobject.c | 16 +++------
src/pl/plpython/plpy_spi.c | 10 +++---
src/pl/plpython/plpy_typeio.c | 40 +++++++++------------
src/pl/plpython/plpy_util.c | 9 -----
src/pl/plpython/plpy_util.h | 2 --
src/pl/plpython/plpython.h | 34 +-----------------
16 files changed, 95 insertions(+), 234 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Amit Kapila | 2022-03-08 02:47:47 | pgsql: Add the additional information to the logical replication worker |
Previous Message | Andres Freund | 2022-03-08 02:23:06 | pgsql: plpython: Remove plpythonu, plpython2u and associated transform |