pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <bruce@momjian.us>
To: Devrim Gündüz <devrim@gunduz.org>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Marcin Giedz <marcin.giedz@arise.pl>
Cc: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Magnus Hagander <magnus@hagander.net>
Cc: Adrian Klaver <adrian.klaver@aklaver.com>
Cc: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: pg_upgrade from 12 to 13 failes with plpython2
Date: Wed, 18 Nov 2020 23:29:55 -0500
Message-ID: <20201119042955.GA6414@momjian.us> (raw)
In-Reply-To: <bb47c2c7dc43be936ee25fdc2a998f6d7a099721.camel@gunduz.org>
References: <CABUevEzHz4cEtxDQLkdVVzAzfQtWXs=hOiSxD=SCDZwoXeKjng@mail.gmail.com>
	<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>
	<bb47c2c7dc43be936ee25fdc2a998f6d7a099721.camel@gunduz.org>

On Wed, Nov 18, 2020 at 10:06:17PM +0000, Devrim Gunduz wrote:
> Hi,
> 
> 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. 
> 
> I think this was broken when Marcin first dropped the language. We
> should just have dropped the extension, I guess.

pg_upgrade does have some code to handle plpython call handlers in
function.c:get_loadable_libraries();

         * 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

-- 
  Bruce Momjian  <bruce@momjian.us>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee






view thread (34+ messages)  latest in thread

Message-ID: <20201119042955.GA6414@momjian.us>
Permalink:  ../20201119042955.GA6414@momjian.us/
Also on:    postgresql.org/message-id/20201119042955.GA6414@momjian.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: bruce@momjian.us, devrim@gunduz.org, tgl@sss.pgh.pa.us, marcin.giedz@arise.pl, laurenz.albe@cybertec.at, magnus@hagander.net, adrian.klaver@aklaver.com
  Subject: Re: pg_upgrade from 12 to 13 failes with plpython2
  In-Reply-To: <20201119042955.GA6414@momjian.us>
  References: <CABUevEzHz4cEtxDQLkdVVzAzfQtWXs=hOiSxD=SCDZwoXeKjng@mail.gmail.com> <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> <bb47c2c7dc43be936ee25fdc2a998f6d7a099721.camel@gunduz.org> <20201119042955.GA6414@momjian.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox