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 1kfTj8-0007OZ-OZ for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 20:06:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfTj7-0003ZY-OK for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 20:06:49 +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 1kfTj7-0003XX-Bp for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 20:06:49 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfTj3-0004MQ-Jz for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 20:06:48 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kfTiw-0003KT-7N; Wed, 18 Nov 2020 15:06:38 -0500 Date: Wed, 18 Nov 2020 15:06:38 -0500 From: Bruce Momjian To: Marcin Giedz Cc: Tom Lane , Laurenz Albe , Magnus Hagander , Adrian Klaver , Devrim =?iso-8859-1?B?R/xuZPx6?= , pgsql-general Subject: Re: pg_upgrade from 12 to 13 failes with plpython2 Message-ID: <20201118200638.GA13839@momjian.us> References: <1965058112.1483134.1605643217808.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> <999795.1605729240@sss.pgh.pa.us> <1948396366.1497285.1605729598546.JavaMail.zimbra@arise.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1948396366.1497285.1605729598546.JavaMail.zimbra@arise.pl> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Wed, Nov 18, 2020 at 08:59:58PM +0100, Marcin Giedz wrote: > > > 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 | $libdir/ > plpython2 | | > > 16403 | plpython_inline_handler | 11 | 10 | 13 | 1 | 0 | 0 | - | f | f | f | > t | f | v | u | 1 | 0 | 2278 | 2281 | | | | | | plpython_inline_handler | > $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 > > ------------------------------------- > > BINGO! after drops all went smooth and easy I think one big problem is that when pg_upgrade fails in this way, users are required to do some complex system catalog queries to diagnose the cause. Is there a way to simplify this for them? -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee