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 1kfbfK-0007kp-2U for pgsql-general@arkaria.postgresql.org; Thu, 19 Nov 2020 04:35:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfbfJ-000286-0D for pgsql-general@arkaria.postgresql.org; Thu, 19 Nov 2020 04:35:25 +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 1kfbfI-00027z-P1 for pgsql-general@lists.postgresql.org; Thu, 19 Nov 2020 04:35:24 +0000 Received: from mail-io1-xd44.google.com ([2607:f8b0:4864:20::d44]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kfbfG-0008Gx-HF for pgsql-general@lists.postgresql.org; Thu, 19 Nov 2020 04:35:23 +0000 Received: by mail-io1-xd44.google.com with SMTP id j23so4565302iog.6 for ; Wed, 18 Nov 2020 20:35:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JWoNReeb1wb+XSpFm8IIIXxS6gdNDJUuv2wSoPHbKuI=; b=YZqP9TKqsY92fcy2DyouWs/cOjGlHFgnazhkw6BRRkF5ehHhxXX4AbmwsmIH+wdqkv PpCKO3bJgOtzJbQd+rJqEQfrsZesvOI1HHKFS06todk6GXdqcEAJlkmz8/f0xkDQoraU DZpuPnb7TOp499IMraYwBN+NSPYj5WUD5Jm19XweZPv/Xyt5EBfPt6Ak1CD2vHITApI5 GJX+Bv+hV1eKV1/sf1KxrxLn4ZnOHUmN2Iel2azbOTW5roMllr6sELfpzYc6na9/7CyB ANFszCVBDUVTMtv3HV3zrRmXtMarz8aRNEZpGhbtRqwrygmbMYyOu/lTdjnnncRKMGSj LUUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=JWoNReeb1wb+XSpFm8IIIXxS6gdNDJUuv2wSoPHbKuI=; b=AvlUh0m9SLPwSMe+YKO5/3sm+XE1FlOi7P89lwgYsmv6I6F+84Bn0sNebmT3dXggsk 5r8PLDYPbFc6suhan64FuCMSJfJ/yEsVIPnjSE1Kw2t4wpZ6ipiWXjk+vvdusvWEcFAc ADl5RRmDaYfgjfh0mOwWCUn+0rB/pUubwf9MuOMyIDCLwJBtyRjvJ72BGJDh0jeZ7mbz yawfJzr4laQYH6WYszekq616Jv1/HNojD7Wbdz2jWwh38CiseU+KvcUbMWVxkA9E20OW WM3XtMLTjikcGOfGhDDwiSEVOXCvqnqE5EopxfFSpsNN6skX5I5h8MSlPDrKn1yCOD4Y XXag== X-Gm-Message-State: AOAM530M/Liv08xu6woOAsKnvQhD49z0yn4nzoRfaLrI4H/IU1UC5AfT zAJYqALScCPQAnv+ur6pOx8= X-Google-Smtp-Source: ABdhPJyjNXcSLnz9mwqNtMXPTgCLZn2wg1x9cBhnWsbF+QZaduflTY7ZcZhq9FOL0265BQm0VqtUPw== X-Received: by 2002:a5e:9411:: with SMTP id q17mr4187376ioj.133.1605760521839; Wed, 18 Nov 2020 20:35:21 -0800 (PST) Received: from ?IPv6:2601:681:5500:dde0:401f:82e2:3608:d59a? ([2601:681:5500:dde0:401f:82e2:3608:d59a]) by smtp.gmail.com with ESMTPSA id 17sm2314689iog.45.2020.11.18.20.35.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 18 Nov 2020 20:35:21 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Re: pg_upgrade from 12 to 13 failes with plpython2 From: Rob Sargent In-Reply-To: <20201119042955.GA6414@momjian.us> Date: Wed, 18 Nov 2020 21:35:20 -0700 Cc: =?utf-8?B?RGV2cmltIEfDvG5kw7x6?= , Tom Lane , Marcin Giedz , Laurenz Albe , Magnus Hagander , Adrian Klaver , pgsql-general Content-Transfer-Encoding: quoted-printable Message-Id: <8CA5BA65-B201-48F3-8F22-9D474CF5C380@gmail.com> References: <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> <999795.1605729240@sss.pgh.pa.us> <20201119042955.GA6414@momjian.us> To: Bruce Momjian X-Mailer: Apple Mail (2.3608.120.23.2.4) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Nov 18, 2020, at 9:29 PM, Bruce Momjian wrote: >=20 > On Wed, Nov 18, 2020 at 10:06:17PM +0000, Devrim Gunduz wrote: >> Hi, >>=20 >> On Wed, 2020-11-18 at 14:54 -0500, Tom Lane wrote: >>> Uh-huh, so there you have it. These must be leftovers from some >>> pre-extension incarnation of plpython that was never cleaned up >>> properly.=20 >>=20 >> I think this was broken when Marcin first dropped the language. We >> should just have dropped the extension, I guess. >=20 > pg_upgrade does have some code to handle plpython call handlers in > function.c:get_loadable_libraries(); >=20 > * Systems that install plpython before 8.1 have > * plpython_call_handler() defined in the "public" schema, = causing > * pg_dump to dump it. However that function still references > * "plpython" (no "2"), so it throws an error on restore. This = code > * checks for the problem function, reports affected databases = to the > * user and explains how to remove them. 8.1 git commit: > * e0dedd0559f005d60c69c9772163e69c204bac69 > * = http://archives.postgresql.org/pgsql-hackers/2012-03/msg01101.php > * = http://archives.postgresql.org/pgsql-bugs/2012-05/msg00206.php >=20 > --=20 > Bruce Momjian https://momjian.us > EnterpriseDB https://enterprisedb.com >=20 > The usefulness of a cup is in its emptiness, Bruce Lee >=20 >=20 Unless it stop at prompts for =E2=80=9CYes, ok, I understand.=E2=80=9D = this could easily fly out the window. >=20