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 1kfStk-0005TG-3j for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 19:13:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfSti-0001bW-Ir for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 19:13:42 +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 1kfSti-0001bP-B5 for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 19:13:42 +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 1kfStf-0003sm-OB for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 19:13:40 +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 0AIJDMWB996838; Wed, 18 Nov 2020 14:13:22 -0500 From: Tom Lane To: Marcin Giedz cc: Laurenz Albe , Magnus Hagander , Adrian Klaver , Devrim =?utf-8?B?R8O8bmTDvHo=?= , pgsql-general Subject: Re: pg_upgrade from 12 to 13 failes with plpython2 In-reply-to: <1359566111.1497149.1605726303756.JavaMail.zimbra@arise.pl> References: <1965058112.1483134.1605643217808.JavaMail.zimbra@arise.pl> <410666958.1483934.1605683452910.JavaMail.zimbra@arise.pl> <241497908.1487873.1605693947374.JavaMail.zimbra@arise.pl> <296a13f436781af544e623671793a7280bf2fb23.camel@cybertec.at> <528508727.1496543.1605721842899.JavaMail.zimbra@arise.pl> <993885.1605722905@sss.pgh.pa.us> <1359566111.1497149.1605726303756.JavaMail.zimbra@arise.pl> Comments: In-reply-to Marcin Giedz message dated "Wed, 18 Nov 2020 20:05:03 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <996836.1605726802.1@sss.pgh.pa.us> Date: Wed, 18 Nov 2020 14:13:22 -0500 Message-ID: <996837.1605726802@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk [ please don't top-post, it makes conversations unreadable ] Marcin Giedz writes: > so look at this: > postgres=# drop extension plpython; > ERROR: extension "plpython" does not exist > postgres=# drop extension plpythonu; > ERROR: extension "plpythonu" does not exist > postgres=# drop extension plpython2u; > ERROR: extension "plpython2u" does not exist Well, the pg_upgrade failure clearly shows that you've got some functions referencing plpython2. Maybe they're "loose" instead of being bound into an extension --- that's quite possible if this database has been brought forward from some pre-9.1 state. Try looking in each database with select * from pg_proc where probin like '%python2%'; regards, tom lane