Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f96JB-0000Bp-9S for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 09:56:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f96J9-00017U-Gq for pgsql-general@arkaria.postgresql.org; Thu, 19 Apr 2018 09:56:51 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f96J9-00017K-88 for pgsql-general@lists.postgresql.org; Thu, 19 Apr 2018 09:56:51 +0000 Received: from mx3-rdu2.redhat.com ([66.187.233.73] helo=mx1.redhat.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f96J5-0003hp-72 for pgsql-general@postgresql.org; Thu, 19 Apr 2018 09:56:50 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 58A28F10DF for ; Thu, 19 Apr 2018 09:56:42 +0000 (UTC) Received: from nb.usersys.redhat.com (unknown [10.43.2.31]) by smtp.corp.redhat.com (Postfix) with ESMTP id 182531142372 for ; Thu, 19 Apr 2018 09:56:41 +0000 (UTC) From: Pavel Raiskup To: pgsql-general 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> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 19 Apr 2018 09:56:42 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Thu, 19 Apr 2018 09:56:42 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'praiskup@redhat.com' RCPT:'' List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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 =E2=80=9Cdefault=E2=80=9D, for example, what /usr/bin/python m= ight 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. =2E. 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