From: Pavel Raiskup <praiskup@redhat.com>
To: pgsql-general <pgsql-general@postgresql.org>
Subject: obsoleting plpython2u and defaulting plpythonu to plpython3u
Date: Thu, 19 Apr 2018 11:56:40 +0200
Message-ID: <3775251.2SzJCDjjet@nb.usersys.redhat.com> (raw)
Per current plpython docs:
The language named plpythonu implements PL/Python based on the default
Python language variant, which is currently Python 2. (This default is
independent of what any local Python installations might consider to
be their “default”, for example, what /usr/bin/python might be.) The
default will probably be changed to Python 3 in a distant future
release of PostgreSQL, depending on the progress of the migration to
Python 3 in the Python community.
.. the status quo seems to be bit optimistic with the "distant future",
and we should start thinking about dropping plpython2 support, same as
upstream (a bit optimistically too, IMO) does [1].
The docs don't suggest the explicit use of plpython2, but still the docs
are not discouraging from it -- so it is likely some clusters run against
that.
What's the expected future migration path from plpython2 to plpython3 in
such cases? I'm thinking about rewrite of the docs and creating some
scripting which could simplify the migration steps. Would such patches be
welcome at this point?
[1] https://pythonclock.org/
Pavel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: praiskup@redhat.com
Subject: Re: obsoleting plpython2u and defaulting plpythonu to plpython3u
In-Reply-To: <3775251.2SzJCDjjet@nb.usersys.redhat.com>
References: <3775251.2SzJCDjjet@nb.usersys.redhat.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox