aboutsummaryrefslogtreecommitdiff
path: root/src/pl/plpython/plpy_elog.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2020-01-08 21:48:44 +0100
committerPeter Eisentraut <peter@eisentraut.org>2020-01-08 22:47:22 +0100
commit37f21ed132d1c5aee88e81fee0a0b7e735673d35 (patch)
tree42c54d36c636f68c961783f5a6252ed743b80122 /src/pl/plpython/plpy_elog.c
parentf5d28710c707ad602cd869602e092cc9d538cbb9 (diff)
downloadpostgresql-37f21ed132d1c5aee88e81fee0a0b7e735673d35.tar.gz
postgresql-37f21ed132d1c5aee88e81fee0a0b7e735673d35.zip
Remove support for Python older than 2.6
Supporting very old Python versions is a maintenance burden, especially with the several variant test files to maintain for Python <2.6. Since we have dropped support for older OpenSSL versions in 7b283d0e1d1d79bf1c962d790c94d2a53f3bb38a, RHEL 5 is now effectively desupported, and that was also the only mainstream operating system still using Python versions before 2.6, so it's a good time to drop those as well. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Discussion: https://www.postgresql.org/message-id/flat/98b69261-298c-13d2-f34d-836fd9c29b21%402ndquadrant.com
Diffstat (limited to 'src/pl/plpython/plpy_elog.c')
-rw-r--r--src/pl/plpython/plpy_elog.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pl/plpython/plpy_elog.c b/src/pl/plpython/plpy_elog.c
index eb562821a27..71b433ef267 100644
--- a/src/pl/plpython/plpy_elog.c
+++ b/src/pl/plpython/plpy_elog.c
@@ -242,12 +242,6 @@ PLy_traceback(PyObject *e, PyObject *v, PyObject *tb,
PG_TRY();
{
- /*
- * Ancient versions of Python (circa 2.3) contain a bug whereby
- * the fetches below can fail if the error indicator is set.
- */
- PyErr_Clear();
-
lineno = PyObject_GetAttrString(tb, "tb_lineno");
if (lineno == NULL)
elog(ERROR, "could not get line number from Python traceback");