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 1kfcx6-0006xs-Qx for pgsql-general@arkaria.postgresql.org; Thu, 19 Nov 2020 05:57:52 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfcx5-0006hs-Mi for pgsql-general@arkaria.postgresql.org; Thu, 19 Nov 2020 05:57:51 +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 1kfcx5-0006gu-En for pgsql-general@lists.postgresql.org; Thu, 19 Nov 2020 05:57:51 +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 1kfcwy-0000Xe-Ub for pgsql-general@lists.postgresql.org; Thu, 19 Nov 2020 05:57:50 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kfcws-00052d-Tq; Thu, 19 Nov 2020 00:57:38 -0500 Date: Thu, 19 Nov 2020 00:57:38 -0500 From: Bruce Momjian To: Rob Sargent Cc: Devrim =?iso-8859-1?B?R/xuZPx6?= , Tom Lane , Marcin Giedz , Laurenz Albe , Magnus Hagander , Adrian Klaver , pgsql-general Subject: Re: pg_upgrade from 12 to 13 failes with plpython2 Message-ID: <20201119055738.GA9349@momjian.us> References: <20201119043943.GB6414@momjian.us> <97B34E7D-9A94-413E-8A04-D9C3683EE2AC@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <97B34E7D-9A94-413E-8A04-D9C3683EE2AC@gmail.com> 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 10:57:00PM -0700, Rob Sargent wrote: > > It issues this message and fails: > > > > if (PQntuples(res) > 0) > > { > > if (!found_public_plpython_handler) > > { > > pg_log(PG_WARNING, > > "\nThe old cluster has a \"plpython_call_handler\" function defined\n" > > "in the \"public\" schema which is a duplicate of the one defined\n" > > "in the \"pg_catalog\" schema. You can confirm this by executing\n" > > "in psql:\n" > > "\n" > > " \\df *.plpython_call_handler\n" > > "\n" > > "The \"public\" schema version of this function was created by a\n" > > "pre-8.1 install of plpython, and must be removed for pg_upgrade\n" > > "to complete because it references a now-obsolete \"plpython\"\n" > > "shared object file. You can remove the \"public\" schema version\n" > > "of this function by running the following command:\n" > > "\n" > > " DROP FUNCTION public.plpython_call_handler()\n" > > "\n" > > "in each affected database:\n" > > "\n"); > > } > > pg_log(PG_WARNING, " %s\n", active_db->db_name); > > found_public_plpython_handler = true; > > } > > PQclear(res); > > } > > > > PQfinish(conn); > > } > > > > if (found_public_plpython_handler) > > pg_fatal("Remove the problem functions from the old cluster to continue.\n"); > > > > > Does this jive with OP’s experience? Or should it? It didn't trigger this message for him, and I am also wondering if it should have. -- Bruce Momjian https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee