diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2020-01-08 21:48:44 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2020-01-08 22:47:22 +0100 |
commit | 37f21ed132d1c5aee88e81fee0a0b7e735673d35 (patch) | |
tree | 42c54d36c636f68c961783f5a6252ed743b80122 /doc/src | |
parent | f5d28710c707ad602cd869602e092cc9d538cbb9 (diff) | |
download | postgresql-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 'doc/src')
-rw-r--r-- | doc/src/sgml/installation.sgml | 2 | ||||
-rw-r--r-- | doc/src/sgml/plpython.sgml | 16 |
2 files changed, 3 insertions, 15 deletions
diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index d4904bf5a06..f1adcc3c559 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -196,7 +196,7 @@ su - postgres language, you need a <productname>Python</productname> installation with the header files and the <application>distutils</application> module. The minimum - required version is <productname>Python</productname> 2.4. + required version is <productname>Python</productname> 2.6. <productname>Python 3</productname> is supported if it's version 3.1 or later; but see <xref linkend="plpython-python23"/> diff --git a/doc/src/sgml/plpython.sgml b/doc/src/sgml/plpython.sgml index c4210925718..7bdaf76bbad 100644 --- a/doc/src/sgml/plpython.sgml +++ b/doc/src/sgml/plpython.sgml @@ -1335,9 +1335,8 @@ $$ LANGUAGE plpythonu; <para> Context managers syntax using the <literal>with</literal> keyword - is available by default in Python 2.6. If using PL/Python with an - older Python version, it is still possible to use explicit - subtransactions, although not as transparently. You can call the + is available by default in Python 2.6. For compatibility with + older Python versions, you can call the subtransaction manager's <literal>__enter__</literal> and <literal>__exit__</literal> functions using the <literal>enter</literal> and <literal>exit</literal> convenience @@ -1367,17 +1366,6 @@ plpy.execute(plan, [result]) $$ LANGUAGE plpythonu; </programlisting> </para> - - <note> - <para> - Although context managers were implemented in Python 2.5, to use - the <literal>with</literal> syntax in that version you need to - use a <ulink - url="https://docs.python.org/release/2.5/ref/future.html">future - statement</ulink>. Because of implementation details, however, - you cannot use future statements in PL/Python functions. - </para> - </note> </sect2> </sect1> |