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 1kfTLc-0006TR-Sd for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 19:42:33 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfTLb-0000WH-MD for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 19:42:31 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfTLb-0000WA-Cu for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 19:42:31 +0000 Received: from mail.arise.pl ([77.79.204.235]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfTLZ-0000ob-CO for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 19:42:31 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.arise.pl (Postfix) with ESMTP id D853A34D387; Wed, 18 Nov 2020 20:42:27 +0100 (CET) Received: from mail.arise.pl ([127.0.0.1]) by localhost (mail1.arise [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id mtIrNpCQJc9b; Wed, 18 Nov 2020 20:42:17 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.arise.pl (Postfix) with ESMTP id DAA1534D4E6; Wed, 18 Nov 2020 20:42:16 +0100 (CET) X-Virus-Scanned: amavisd-new at arise.pl Received: from mail.arise.pl ([127.0.0.1]) by localhost (mail1.arise [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 873FLb5rb89B; Wed, 18 Nov 2020 20:42:16 +0100 (CET) Received: from mail1.arise (mail1.arise [172.16.198.9]) by mail.arise.pl (Postfix) with ESMTP id A33ED34D3E6; Wed, 18 Nov 2020 20:42:16 +0100 (CET) Date: Wed, 18 Nov 2020 20:42:16 +0100 (CET) From: Marcin Giedz To: Tom Lane Cc: Laurenz Albe , Magnus Hagander , Adrian Klaver , Devrim =?utf-8?B?R8O8bmTDvHo=?= , pgsql-general Message-ID: <1372359469.1497249.1605728536470.JavaMail.zimbra@arise.pl> In-Reply-To: <996837.1605726802@sss.pgh.pa.us> 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> Subject: Re: pg_upgrade from 12 to 13 failes with plpython2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1497248_2136197049.1605728536470" X-Mailer: Zimbra 8.6.0_GA_1153 (ZimbraWebClient - FF82 (Linux)/8.6.0_GA_1153) Thread-Topic: pg_upgrade from 12 to 13 failes with plpython2 Thread-Index: Vpp45P/pLV+QJI5ij4TDLGc2W5a8tw== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1497248_2136197049.1605728536470 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit [ please don't top-post, it makes conversations unreadable ] Marcin Giedz writes: > so look at this: > postgres=# drop extension plpython; > ERROR: extension "plpython" does not exist > postgres=# drop extension plpythonu; > ERROR: extension "plpythonu" does not exist > postgres=# drop extension plpython2u; > ERROR: extension "plpython2u" does not exist Well, the pg_upgrade failure clearly shows that you've got some functions referencing plpython2. Maybe they're "loose" instead of being bound into an extension --- that's quite possible if this database has been brought forward from some pre-9.1 state. Try looking in each database with select * from pg_proc where probin like '%python2%'; regards, tom lane -------------------------------------------------------------------------------------------------------------------------------- sorry for top-posting not a day-to-day habits in our env ;) anyway got this from your query: oid | proname | pronamespace | proowner | prolang | procost | prorows | provariadic | prosupport | prokind | prosecdef | proleakproof | proisstrict | proretset | provolatile | proparallel | pronargs | pronargdefaults | prorettype | proargtypes | proallargtypes | proargmodes | proargnames | proargdefaults | protrftypes | prosrc | probin | proconfig | proacl -------+-------------------------+--------------+----------+---------+---------+---------+-------------+------------+---------+-----------+--------------+-------------+-----------+-------------+-------------+----------+-----------------+------------+-------------+----------------+-------------+-------------+----------------+-------------+-------------------------+-------------------+-----------+-------- 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 | | (3 rows) (END) sounds nothing for me I'm afraid but I hope gives a hint for you ;) Many thx M. ------=_Part_1497248_2136197049.1605728536470 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable

[ please don't top-post, it makes conversations unreadable ]

Mar= cin Giedz <marcin.giedz@arise.pl> writes:
> so look at this: > postgres=3D# drop extension plpython;
> ERROR: extension "plp= ython" does not exist
> postgres=3D# drop extension plpythonu;
&= gt; ERROR: extension "plpythonu" does not exist
> postgres=3D# drop = extension plpython2u;
> ERROR: extension "plpython2u" does not exist=

Well, the pg_upgrade failure clearly shows that you've got somefunctions referencing plpython2.  Maybe they're "loose" instead
of= being bound into an extension --- that's quite possible if
this databas= e has been brought forward from some pre-9.1 state.
Try looking in each = database with

select * from pg_proc where probin like '%python2%';
           &nb= sp;            = regards, tom lane

----------------------------= ---------------------------------------------------------------------------= -------------------------

sorry for top-posting not a day-to-day habits in our = env ;)

anyway got this fr= om your query:

=

  oid  |       =   proname         | pronamespa= ce | proowner | prolang | procost | prorows | provariadic | prosupport | pr= okind | prosecdef | proleakproof | proisstrict | proretset | provolatile | = proparallel | pronargs | pronargdefaults | prorettype | proargtypes | proal= largtypes | proargmodes | proargnames | proargdefaults | protrftypes | = ;        prosrc    &= nbsp;     |      probin &= nbsp;     | proconfig | proacl
-------+------------= -------------+--------------+----------+---------+---------+---------+-----= --------+------------+---------+-----------+--------------+-------------+--= ---------+-------------+-------------+----------+-----------------+--------= ----+-------------+----------------+-------------+-------------+-----------= -----+-------------+-------------------------+-------------------+---------= --+--------
 16402 | plpython_call_handler   |  = ;         11 |   &nb= sp;   10 |      13 |   &n= bsp;   1 |       0 |  &nb= sp;        0 | -    =       | f       | f&= nbsp;        | f    =         | f     = ;      | f      &nbs= p;  | v           | = u           |  =       0 |       = ;        0 |    &nbs= p;  2280 |          =    |          &= nbsp;     |       &n= bsp;     |       &nb= sp;     |       &nbs= p;        |     = ;        | plpython_call_handler &n= bsp; | $libdir/plpython2 |        &= nbsp;  |
 16403 | plpython_inline_handler |   =         11 |    &nbs= p;  10 |      13 |    &nb= sp;  1 |       0 |   &nbs= p;       0 | -     &= nbsp;    | f       | f &n= bsp;       | f     &= nbsp;      | t      =      | f        = ; | v           | u =           |   &= nbsp;    1 |        =        0 |      = ; 2278 | 2281        |   =              |&= nbsp;            |&n= bsp;            |&nb= sp;            =    |          &= nbsp;  | plpython_inline_handler | $libdir/plpython2 |  &nbs= p;        |
 16404 | plpython_v= alidator      |      = ;     11 |       10 |&nbs= p;     13 |       1 |&nbs= p;      0 |      &nb= sp;    0 | -        =   | f       | f    &= nbsp;    | f        =     | t         = ;  | f         | v  =          | u    = ;       |      =   1 |           = ;    0 |       2278 | 26 =          |    &= nbsp;           | &n= bsp;           | &nb= sp;           | &nbs= p;            &= nbsp; |           &n= bsp; | plpython_validator      | $libdir/plpython2= |           |
(3 row= s)

(END)

sounds no= thing for me I'm afraid but I hope gives a hint for you ;)


Many thx
M.



------=_Part_1497248_2136197049.1605728536470--