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 1kMArW-0007Du-U1 for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 14:07:42 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMArT-0004fl-HQ for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 14:07:39 +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 1kMArT-0004fe-43 for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 14:07:39 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMArP-0006Fn-3B for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 14:07:37 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 08QE7WiQ1990005; Sat, 26 Sep 2020 10:07:32 -0400 From: Tom Lane To: =?utf-8?Q?Paul_F=C3=B6rster?= cc: PostgreSQL General Subject: Re: pg_upgrade Python version issue on openSUSE In-reply-to: <06317862-1908-48C7-8766-F6D1B4BFEB9F@gmail.com> References: <553A044A-D0E3-475D-8DC0-5845381CB086@gmail.com> <1FB046FC-BE42-4D66-B0AE-E94B6CB9498E@gmail.com> <06317862-1908-48C7-8766-F6D1B4BFEB9F@gmail.com> Comments: In-reply-to =?utf-8?Q?Paul_F=C3=B6rster?= message dated "Sat, 26 Sep 2020 12:58:51 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <1990003.1601129252.1@sss.pgh.pa.us> Date: Sat, 26 Sep 2020 10:07:32 -0400 Message-ID: <1990004.1601129252@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk =?utf-8?Q?Paul_F=C3=B6rster?= writes: > seems, I found some kind of solution: > - before running "pg_upgrade --check -k": > drop extension plpythonu; > - run pg_upgrade > - after the upgrade: > create extension plpython3u; > Is this the correct way? 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.) However, I don't understand how "drop extension plpythonu" worked for you, given your previous query showing that that extension wasn't installed. regards, tom lane