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 1kfTX4-0006vo-7m for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 19:54:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfTX2-0004nH-RM for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 19:54:20 +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 1kfTX2-0004nA-Jw for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 19:54:20 +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 1kfTX0-0004Gr-G5 for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 19:54:19 +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 0AIJs0oY999796; Wed, 18 Nov 2020 14:54:00 -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: <1372359469.1497249.1605728536470.JavaMail.zimbra@arise.pl> References: <1965058112.1483134.1605643217808.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> <996837.1605726802@sss.pgh.pa.us> <1372359469.1497249.1605728536470.JavaMail.zimbra@arise.pl> Comments: In-reply-to Marcin Giedz message dated "Wed, 18 Nov 2020 20:42:16 +0100" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <999794.1605729240.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Nov 2020 14:54:00 -0500 Message-ID: <999795.1605729240@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Marcin Giedz writes: > anyway got this from your query: = > 16402 | plpython_call_handler | 11 | 10 | 13 | 1 | 0 | 0 | - | f | f | f= | f | f | v | u | 0 | 0 | 2280 | | | | | | | plpython_call_handler | $lib= dir/plpython2 | | = > 16403 | plpython_inline_handler | 11 | 10 | 13 | 1 | 0 | 0 | - | f | f |= f | t | f | v | u | 1 | 0 | 2278 | 2281 | | | | | | plpython_inline_handl= er | $libdir/plpython2 | | = > 16404 | plpython_validator | 11 | 10 | 13 | 1 | 0 | 0 | - | f | f | f | = t | f | v | u | 1 | 0 | 2278 | 26 | | | | | | plpython_validator | $libdir= /plpython2 | | = Uh-huh, so there you have it. These must be leftovers from some pre-extension incarnation of plpython that was never cleaned up properly. Try DROP FUNCTION pg_catalog.plpython_call_handler(); DROP FUNCTION pg_catalog.plpython_inline_handler(internal); DROP FUNCTION pg_catalog.plpython_validator(oid); It'll be interesting to see if there are any dependencies. regards, tom lane