Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMBIB-0000B2-6t for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 14:35:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMBI9-0008Qq-Ow for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 14:35:13 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMBI9-0008OF-Fz for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 14:35:13 +0000 Received: from mail-ej1-x642.google.com ([2a00:1450:4864:20::642]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kMBI5-0006Uo-Tp for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 14:35:12 +0000 Received: by mail-ej1-x642.google.com with SMTP id gx22so2486138ejb.5 for ; Sat, 26 Sep 2020 07:35:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jBXqd4/T/WUZ+DFs6Q3LZogrjg6WyxrQzn+5j+A/Jf4=; b=PDDz3cEjBuTM2+s4tHUmwk3eYTAzzue2pW0x5fVUu24xuAONWaFizatO/HCiL4zfrc 4aRBWsEwKtKtxeBdZqJZX9ixqjJ9LjYhqjtTXtX2VBCDo8fK+Wc5xfkLGqWs+PPha58k 4gziFU0vLhyXO7KwY8YD8Rnise8pkCg00n5wF4vTYiyEtZtmxeA8ZvAMm84jOIlInc3Q qixWzUvCmQl24C9P7nM23u7gVWDIX71Oo/TBiCJJp3b5T+tz7MienEqqSpuaC9ah9VIn 0uZRfH6ziOivWFlRPkmdSYPtkEK7nxOo/JA7HwByuv3R2v+cakiDXurpA1P35gm8+6Rh p/Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=jBXqd4/T/WUZ+DFs6Q3LZogrjg6WyxrQzn+5j+A/Jf4=; b=LfWcj8Fkcf20yEXl3z6CAMQSwi4q1fY1BEF1eFsZvAlZrFoHjrlWS+xyua9PiaXQBK lKXz3Ry81EbxxE74DU4jxjXRx2GOwSJc8AH01Af452Dwa/Q436bsN/V1Qr07+F/QXKKB BE5szOHCA27FNR9ScCRKlwT3ONHfTBNnCGm/rjX4AIAaJpW+GerAkQahVNc3mK7QC+mu m5m88ya2D/saPYJFzhFLWXG+8GIcKeKFBQV+c98B/wwBa50U13/tSoaJEfJiNJ4v/rlE 8k2jE120AziTSLBW7Gj5NWUWonx76BL65KOUug1WX1rM50exJfmJZIe6rACAgqydlvS1 6IBw== X-Gm-Message-State: AOAM533rnNUtR6wokw/svOJHpOACf4NbrWKnewxJhHrmKFe1ahlKVOLK FBLaOTGktLlMEwuQ/+BYtNg= X-Google-Smtp-Source: ABdhPJzZrMf0D+Gikp9MRLj8darLuZgCKjY3oEOuwj2pk5oRyI5WJaW62t2IYNa5MZq+sWGdr3HJvg== X-Received: by 2002:a17:906:f8d2:: with SMTP id lh18mr7991296ejb.44.1601130908109; Sat, 26 Sep 2020 07:35:08 -0700 (PDT) Received: from [192.168.1.145] (241-57-239-77.dyn.cable.fcom.ch. [77.239.57.241]) by smtp.gmail.com with ESMTPSA id c5sm4503084edt.24.2020.09.26.07.35.07 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Sep 2020 07:35:07 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: pg_upgrade Python version issue on openSUSE From: =?utf-8?Q?Paul_F=C3=B6rster?= In-Reply-To: <1990004.1601129252@sss.pgh.pa.us> Date: Sat, 26 Sep 2020 16:35:07 +0200 Cc: PostgreSQL General Content-Transfer-Encoding: quoted-printable Message-Id: <9D64B513-77D4-41D9-87E5-0727FAF96C84@gmail.com> References: <553A044A-D0E3-475D-8DC0-5845381CB086@gmail.com> <1FB046FC-BE42-4D66-B0AE-E94B6CB9498E@gmail.com> <06317862-1908-48C7-8766-F6D1B4BFEB9F@gmail.com> <1990004.1601129252@sss.pgh.pa.us> To: Tom Lane X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi Tom, > On 26. Sep, 2020, at 16:07, Tom Lane wrote: >=20 > =3D?utf-8?Q?Paul_F=3DC3=3DB6rster?=3D = writes: >> seems, I found some kind of solution: >=20 >> - before running "pg_upgrade --check -k": >> drop extension plpythonu; >> - run pg_upgrade >> - after the upgrade: >> create extension plpython3u; >=20 >> Is this the correct way? >=20 > If you had plpythonu installed before, that's a plausible thing > to do. (There was discussion some time ago about making the > python-2-to-3 transition less painful for users, but we failed > to come to any consensus about how; so manual fixes like this > are going to be needed for a lot of people.) >=20 > However, I don't understand how "drop extension plpythonu" > worked for you, given your previous query showing that > that extension wasn't installed. just checked with another 12.4. It's the same: postgres=3D# select * from pg_available_extension_versions where = installed; name | version | installed | superuser | relocatable | schema | = requires | comment =20= = ---------+---------+-----------+-----------+-------------+------------+---= -------+-------------------------------------------------------------- plperlu | 1.0 | t | t | f | pg_catalog | = | PL/PerlU untrusted procedural language dblink | 1.2 | t | t | t | | = | connect to other PostgreSQL databases from within a database plpgsql | 1.0 | t | f | f | pg_catalog | = | PL/pgSQL procedural language plperl | 1.0 | t | f | f | pg_catalog | = | PL/Perl procedural language (4 rows) postgres=3D# drop extension plpythonu ; DROP EXTENSION postgres=3D# create extension plpython3u ; CREATE EXTENSION The "plpython" and "plpython3u" for the drop and create extension = statements came by entering "plpy" and then pressing tab. So PostgreSQL = knew about them. Still, as you can see, I could drop pypythonu again = though it did not appear in the query. After the create extension, it = appears as it should: postgres=3D# select * from pg_available_extension_versions where = installed; name | version | installed | superuser | relocatable | schema = | requires | comment = =20 = ------------+---------+-----------+-----------+-------------+------------+= ----------+-------------------------------------------------------------- plperlu | 1.0 | t | t | f | pg_catalog = | | PL/PerlU untrusted procedural language dblink | 1.2 | t | t | t | = | | connect to other PostgreSQL databases from within a = database plpython3u | 1.0 | t | t | f | pg_catalog = | | PL/Python3U untrusted procedural language plpgsql | 1.0 | t | f | f | pg_catalog = | | PL/pgSQL procedural language plperl | 1.0 | t | f | f | pg_catalog = | | PL/Perl procedural language (5 rows) Is this a bug in 12.4 not showing the extension? Cheers, Paul=