plpython: Code cleanup related to removal of Python 2 support.
Andres Freund <andres@anarazel.de>
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@eisentraut.org> Reviewed-By: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://postgr.es/m/20211031184548.g4sxfe47n2kyi55r@alap3.anarazel.de
Files
| Path | Change | +/− |
|---|---|---|
| contrib/hstore_plpython/hstore_plpython.c | modified | +4 −8 |
| contrib/jsonb_plpython/jsonb_plpython.c | modified | +11 −16 |
| contrib/ltree_plpython/ltree_plpython.c | modified | +1 −5 |
| src/pl/plpython/plpy_cursorobject.c | modified | +4 −4 |
| src/pl/plpython/plpy_elog.c | modified | +11 −15 |
| src/pl/plpython/plpy_exec.c | modified | +20 −24 |
| src/pl/plpython/plpy_main.c | modified | +10 −49 |
| src/pl/plpython/plpy_planobject.c | modified | +1 −1 |
| src/pl/plpython/plpy_plpymodule.c | modified | +8 −24 |
| src/pl/plpython/plpy_plpymodule.h | modified | +0 −2 |
| src/pl/plpython/plpy_resultobject.c | modified | +4 −12 |
| src/pl/plpython/plpy_spi.c | modified | +4 −6 |
| src/pl/plpython/plpython.h | modified | +1 −33 |
| src/pl/plpython/plpy_typeio.c | modified | +16 −24 |
| src/pl/plpython/plpy_util.c | modified | +0 −9 |
| src/pl/plpython/plpy_util.h | modified | +0 −2 |
Discussion
- Time to drop plpython2? 86 messages · 2021-10-31 → 2022-03-09