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 1kfKLo-0001y3-P2 for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 10:06:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfKLm-00019u-Le for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 10:06:06 +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 1kfKLm-00019d-4l for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 10:06:06 +0000 Received: from mail.arise.pl ([77.79.204.235]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kfKLh-0007gQ-CH for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 10:06:05 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.arise.pl (Postfix) with ESMTP id C784B34D17D; Wed, 18 Nov 2020 11:05:58 +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 CAB24X38nnNT; Wed, 18 Nov 2020 11:05:47 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.arise.pl (Postfix) with ESMTP id C24D134D53B; Wed, 18 Nov 2020 11:05:47 +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 b7JopIp_LdoO; Wed, 18 Nov 2020 11:05:47 +0100 (CET) Received: from mail1.arise (mail1.arise [172.16.198.9]) by mail.arise.pl (Postfix) with ESMTP id 8E2B734D511; Wed, 18 Nov 2020 11:05:47 +0100 (CET) Date: Wed, 18 Nov 2020 11:05:47 +0100 (CET) From: Marcin Giedz To: Magnus Hagander Cc: Adrian Klaver , Tom Lane , Devrim =?utf-8?B?R8O8bmTDvHo=?= , pgsql-general Message-ID: <241497908.1487873.1605693947374.JavaMail.zimbra@arise.pl> In-Reply-To: References: <1965058112.1483134.1605643217808.JavaMail.zimbra@arise.pl> <7820164d-5086-b3e2-e200-3f02f07b6280@aklaver.com> <938921.1605648230@sss.pgh.pa.us> <410666958.1483934.1605683452910.JavaMail.zimbra@arise.pl> Subject: Re: pg_upgrade from 12 to 13 failes with plpython2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1487872_1264055887.1605693947373" 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: 56bRuXUqTy2X6H5AAB6BFc+WmHkQhQ== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1487872_1264055887.1605693947373 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable right, I had one function relaying on plpython2u so I changed it... but the= again pg_upgrade claims error with python:=20 cat loadable_libraries.txt=20 could not load library "$libdir/plpython2": ERROR: could not access file "$= libdir/plpython2": No such file or directory=20 In database: argosrm=20 In database: template1=20 marcin@carbon2:~$ psql -U pgsql -h 192.168.89.64 postgres=20 psql (12.4 (Ubuntu 12.4-1), server 12.5)=20 Type "help" for help.=20 postgres=3D# select * from pg_language ;=20 oid | lanname | lanowner | lanispl | lanpltrusted | lanplcallfoid | laninli= ne | lanvalidator | lanacl=20 -------+----------+----------+---------+--------------+---------------+----= -------+--------------+--------=20 12 | internal | 10 | f | f | 0 | 0 | 2246 |=20 13 | c | 10 | f | f | 0 | 0 | 2247 |=20 14 | sql | 10 | f | t | 0 | 0 | 2248 |=20 14177 | plpgsql | 10 | t | t | 14174 | 14175 | 14176 |=20 (4 rows)=20 postgres=3D# \c argosrm=20 psql (12.4 (Ubuntu 12.4-1), server 12.5)=20 You are now connected to database "argosrm" as user "pgsql".=20 argosrm=3D# select * from pg_language ;=20 oid | lanname | lanowner | lanispl | lanpltrusted | lanplcallfoid | laninli= ne | lanvalidator | lanacl=20 ---------+------------+----------+---------+--------------+---------------+= -----------+--------------+--------=20 12 | internal | 10 | f | f | 0 | 0 | 2246 |=20 13 | c | 10 | f | f | 0 | 0 | 2247 |=20 14 | sql | 10 | f | t | 0 | 0 | 2248 |=20 14177 | plpgsql | 10 | t | t | 14174 | 14175 | 14176 |=20 1824389 | plpython3u | 10 | t | f | 1824386 | 1824387 | 1824388 |=20 (5 rows)=20 argosrm=3D# \c template1=20 psql (12.4 (Ubuntu 12.4-1), server 12.5)=20 You are now connected to database "template1" as user "pgsql".=20 template1=3D# select * from pg_language ;=20 oid | lanname | lanowner | lanispl | lanpltrusted | lanplcallfoid | laninli= ne | lanvalidator | lanacl=20 -------+----------+----------+---------+--------------+---------------+----= -------+--------------+--------=20 12 | internal | 10 | f | f | 0 | 0 | 2246 |=20 13 | c | 10 | f | f | 0 | 0 | 2247 |=20 14 | sql | 10 | f | t | 0 | 0 | 2248 |=20 14177 | plpgsql | 10 | t | t | 14174 | 14175 | 14176 |=20 (4 rows)=20 template1=3D# drop language plpython2u;=20 ERROR: language "plpython2u" does not exist=20 template1=3D# drop language plpython;=20 ERROR: language "plpython" does not exist=20 template1=3D# drop language plpythonu;=20 ERROR: language "plpythonu" does not exist=20 template1=3D# \c postgres=20 psql (12.4 (Ubuntu 12.4-1), server 12.5)=20 You are now connected to database "postgres" as user "pgsql".=20 postgres=3D# drop language plpythonu;=20 ERROR: language "plpythonu" does not exist=20 postgres=3D# drop language plpython;=20 ERROR: language "plpython" does not exist=20 postgres=3D# drop language plpython2u;=20 ERROR: language "plpython2u" does not exist=20 postgres=3D# \c argosrm=20 psql (12.4 (Ubuntu 12.4-1), server 12.5)=20 You are now connected to database "argosrm" as user "pgsql".=20 argosrm=3D# drop language plpython2u;=20 ERROR: language "plpython2u" does not exist=20 argosrm=3D# drop language plpython;=20 ERROR: language "plpython" does not exist=20 argosrm=3D# drop language plpythonu;=20 ERROR: language "plpythonu" does not exist=20 argosrm=3D#=20 argosrm=3D# select * from pg_pltemplate ;=20 tmplname | tmpltrusted | tmpldbacreate | tmplhandler | tmplinline | tmplval= idator | tmpllibrary | tmplacl=20 ------------+-------------+---------------+------------------------+-------= -------------------+---------------------+-------------------+---------=20 plpgsql | t | t | plpgsql_call_handler | plpgsql_inline_handler | plpgsql_v= alidator | $libdir/plpgsql |=20 pltcl | t | t | pltcl_call_handler | | | $libdir/pltcl |=20 pltclu | f | f | pltclu_call_handler | | | $libdir/pltcl |=20 plperl | t | t | plperl_call_handler | plperl_inline_handler | plperl_valid= ator | $libdir/plperl |=20 plperlu | f | f | plperlu_call_handler | plperlu_inline_handler | plperlu_v= alidator | $libdir/plperl |=20 plpython3u | f | f | plpython3_call_handler | plpython3_inline_handler | pl= python3_validator | $libdir/plpython3 |=20 (6 rows)=20 argosrm=3D# \c postgres=20 psql (12.4 (Ubuntu 12.4-1), server 12.5)=20 You are now connected to database "postgres" as user "pgsql".=20 postgres=3D# select * from pg_pltemplate ;=20 tmplname | tmpltrusted | tmpldbacreate | tmplhandler | tmplinline | tmplval= idator | tmpllibrary | tmplacl=20 ------------+-------------+---------------+------------------------+-------= -------------------+---------------------+-------------------+---------=20 plpgsql | t | t | plpgsql_call_handler | plpgsql_inline_handler | plpgsql_v= alidator | $libdir/plpgsql |=20 pltcl | t | t | pltcl_call_handler | | | $libdir/pltcl |=20 pltclu | f | f | pltclu_call_handler | | | $libdir/pltcl |=20 plperl | t | t | plperl_call_handler | plperl_inline_handler | plperl_valid= ator | $libdir/plperl |=20 plperlu | f | f | plperlu_call_handler | plperlu_inline_handler | plperlu_v= alidator | $libdir/plperl |=20 plpython3u | f | f | plpython3_call_handler | plpython3_inline_handler | pl= python3_validator | $libdir/plpython3 |=20 (6 rows)=20 postgres=3D# \c template1=20 psql (12.4 (Ubuntu 12.4-1), server 12.5)=20 You are now connected to database "template1" as user "pgsql".=20 template1=3D# select * from pg_pltemplate ;=20 tmplname | tmpltrusted | tmpldbacreate | tmplhandler | tmplinline | tmplval= idator | tmpllibrary | tmplacl=20 ------------+-------------+---------------+------------------------+-------= -------------------+---------------------+-------------------+---------=20 plpgsql | t | t | plpgsql_call_handler | plpgsql_inline_handler | plpgsql_v= alidator | $libdir/plpgsql |=20 pltcl | t | t | pltcl_call_handler | | | $libdir/pltcl |=20 pltclu | f | f | pltclu_call_handler | | | $libdir/pltcl |=20 plperl | t | t | plperl_call_handler | plperl_inline_handler | plperl_valid= ator | $libdir/plperl |=20 plperlu | f | f | plperlu_call_handler | plperlu_inline_handler | plperlu_v= alidator | $libdir/plperl |=20 plpython3u | f | f | plpython3_call_handler | plpython3_inline_handler | pl= python3_validator | $libdir/plpython3 |=20 (6 rows)=20 template1=3D#=20 Od: "Magnus Hagander" =20 Do: "Marcin Giedz" =20 DW: "Adrian Klaver" , "Tom Lane" , "Devrim G=C3=BCnd=C3=BCz" , "pgsql-general" =20 Wys=C5=82ane: =C5=9Broda, 18 listopad 2020 10:36:10=20 Temat: Re: pg_upgrade from 12 to 13 failes with plpython2=20 On Wed, Nov 18, 2020 at 8:11 AM Marcin Giedz wrote:= =20 >=20 > but my question still remains the same - what causes pg_upgrade failure -= are functions the reason? what I did was to delete these 2 rows from pg_pl= template as I thought this may help:=20 >=20 > postgres=3D# delete from pg_pltemplate where tmplname =3D 'plpython2u';= =20 > DELETE 1=20 > postgres=3D# delete from pg_pltemplate where tmplname =3D 'plpythonu';=20 > DELETE 1=20 >=20 >=20 > but pg_upgrade still complains about plpython2:=20 >=20 > cat loadable_libraries.txt=20 > could not load library "$libdir/plpython2": ERROR: could not access file = "$libdir/plpython2": No such file or directory=20 > In database: alaxx=20 > In database: template1=20 It's not the template that's interesting, it's the language itself you=20 need to drop. Log into each database and try to do that, and you will=20 get something like this if you still have functions using it:=20 postgres=3D# DROP LANGUAGE plpython2u;=20 ERROR: cannot drop language plpython2u because other objects depend on it= =20 DETAIL: function testfunc() depends on language plpython2u=20 HINT: Use DROP ... CASCADE to drop the dependent objects too.=20 If you have no functions using it, it will just go away, and once you=20 have dropped it in both databases you should be good to go.=20 And of course, if there are functions depending on it, you should=20 rebuild those on plpython3u before you drop plpython2u (or drop the=20 functions if they're not in use).=20 --=20 Magnus Hagander=20 Me: https://www.hagander.net/=20 Work: https://www.redpill-linpro.com/=20 --=20 Pozdrawiam=20 Marcin Giedz=20 Wiceprezes Zarz=C4=85du=20 ARISE Sp. z o.o.=20 mob. +48 606 673 977=20 mail: marcin.giedz@arise.pl=20 Al. Solidarno=C5=9Bci 117=20 00-140 Warszawa=20 tel. +48 (22) 440 56 20=20 fax +48 (22) 440 56 22=20 http://www.arise.pl=20 Grupa ARISE: ARISE Sp. z o.o. (podmiot dominuj=C4=85cy), ARISE Services S.A= ., Al. Solidarno=C5=9Bci 117, 00-140 Warszawa, S=C4=85d Rejonowy dla m. st.= Warszawy w Warszawie XII Wydzia=C5=82 Gospodarczy Krajowego Rejestru S=C4= =85dowego, KRS 0000316860, REGON 141595449, NIP 5272590610, kapita=C5=82 za= k=C5=82adowy wp=C5=82acony 250,000.00 z=C5=82.=20 ------=_Part_1487872_1264055887.1605693947373 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
right, I had one function relaying on plpyt= hon2u so I changed it... but the again pg_upgrade claims error with python:=

cat loadable_libraries.t= xt
could not load library "$libdir/plpython2": ERROR:  could not a= ccess file "$libdir/plpython2": No such file or directory
In database: a= rgosrm
In database: template1



=

marcin@carbon2:~$ psql -U pgsql -h= 192.168.89.64 postgres
psql (12.4 (Ubuntu 12.4-1), server 12.5)
Type= "help" for help.

postgres=3D# select * from pg_language ;
 = oid  | lanname  | lanowner | lanispl | lanpltrusted | lanplcallf= oid | laninline | lanvalidator | lanacl
-------+----------+----------+-= --------+--------------+---------------+-----------+--------------+--------=
    12 | internal |       = 10 | f       | f     = ;       |      =        0 |      = ;   0 |         2246 |     13 | c        |&nbs= p;      10 | f      = | f            |&nb= sp;            0 |&n= bsp;        0 |    &= nbsp;    2247 |
    14 | sql  &= nbsp;   |       10 | f  &= nbsp;    | t        =     |         &= nbsp;   0 |         0 |&n= bsp;        2248 |
 14177 | plp= gsql  |       10 | t   &n= bsp;   | t         &= nbsp;  |         14174 | =     14175 |        14176 = |
(4 rows)

postgres=3D# \c argosrm
psql (12.4 (Ubuntu 12.4-1)= , server 12.5)
You are now connected to database "argosrm" as user "pgsq= l".
argosrm=3D# select * from pg_language ;
   oid &nb= sp; |  lanname   | lanowner | lanispl | lanpltrusted | lanpl= callfoid | laninline | lanvalidator | lanacl
---------+------------+---= -------+---------+--------------+---------------+-----------+--------------= +--------
      12 | internal   |&nbs= p;      10 | f      = | f            |&nb= sp;            0 |&n= bsp;        0 |    &= nbsp;    2246 |
      13 | c&nb= sp;         |   &nbs= p;   10 | f       | f  &n= bsp;         |   &nb= sp;         0 |   &n= bsp;     0 |       &= nbsp; 2247 |
      14 | sql   &= nbsp;    |       10 | f &= nbsp;     | t       =      |        &= nbsp;    0 |        = 0 |         2248 |
  = ; 14177 | plpgsql    |       1= 0 | t       | t     =        |      &= nbsp;  14174 |     14175 |    =     14176 |
 1824389 | plpython3u |  &nbs= p;    10 | t       | f &n= bsp;          |  &nb= sp;    1824386 |   1824387 |   &nbs= p;  1824388 |
(5 rows)

argosrm=3D# \c template1
psql (12= .4 (Ubuntu 12.4-1), server 12.5)
You are now connected to database "temp= late1" as user "pgsql".
template1=3D# select * from pg_language ;
&nb= sp; oid  | lanname  | lanowner | lanispl | lanpltrusted | lanplca= llfoid | laninline | lanvalidator | lanacl
-------+----------+---------= -+---------+--------------+---------------+-----------+--------------+-----= ---
    12 | internal |     &nbs= p; 10 | f       | f    &n= bsp;       |     &nb= sp;       0 |     &n= bsp;   0 |         2246 |=
    13 | c        |&= nbsp;      10 | f     &nb= sp; | f            |=              0 = |         0 |   &nbs= p;     2247 |
    14 | sql &nbs= p;    |       10 | f &nbs= p;     | t       &nb= sp;    |        &nbs= p;    0 |         0 = |         2248 |
 14177 | = plpgsql  |       10 | t   = ;    | t        &nbs= p;   |         14174 |&nb= sp;    14175 |        141= 76 |
(4 rows)

template1=3D# drop language plpython2u;
ERROR:&= nbsp; language "plpython2u" does not exist
template1=3D# drop language p= lpython;
ERROR:  language "plpython" does not exist
template1=3D= # drop language plpythonu;
ERROR:  language "plpythonu" does not ex= ist

template1=3D# \c post= gres
psql (12.4 (Ubuntu 12.4-1), server 12.5)
You are now connected t= o database "postgres" as user "pgsql".
postgres=3D# drop language plpyth= onu;
ERROR:  language "plpythonu" does not exist
postgres=3D# dr= op language plpython;
ERROR:  language "plpython" does not existpostgres=3D# drop language plpython2u;
ERROR:  language "plpython2= u" does not exist


postgre= s=3D# \c argosrm
psql (12.4 (Ubuntu 12.4-1), server 12.5)
You are now= connected to database "argosrm" as user "pgsql".
argosrm=3D# drop langu= age plpython2u;
ERROR:  language "plpython2u" does not exist
arg= osrm=3D# drop language plpython;
ERROR:  language "plpython" does n= ot exist
argosrm=3D# drop language plpythonu;
ERROR:  language "= plpythonu" does not exist
argosrm=3D#


argosrm=3D# select * from pg_pltemplate    = ;
  tmplname  | tmpltrusted | tmpldbacreate |   = ;   tmplhandler       |  =       tmplinline     &nbs= p;  |    tmplvalidator    |  &= nbsp; tmpllibrary    | tmplacl
------------+------------= -+---------------+------------------------+--------------------------+-----= ----------------+-------------------+---------
 plpgsql  =   | t           | t&= nbsp;            | p= lpgsql_call_handler   | plpgsql_inline_handler   | plpg= sql_validator   | $libdir/plpgsql   |
 pltcl&n= bsp;     | t       &= nbsp;   | t         =     | pltcl_call_handler     | &nbs= p;            &= nbsp;           | &n= bsp;            = ;       | $libdir/pltcl   &nbs= p; |
 pltclu     | f    &n= bsp;      | f      &= nbsp;      | pltclu_call_handler   = |            &= nbsp;           &nbs= p; |            = ;         | $libdir/pltcl &nbs= p;   |
 plperl     | t  &n= bsp;        | t    &= nbsp;        | plperl_call_handler =    | plperl_inline_handler    | plperl_validator&n= bsp;   | $libdir/plperl    |
 plperlu&nbs= p;   | f         &nb= sp; | f           &n= bsp; | plperlu_call_handler   | plperlu_inline_handler  = ; | plperlu_validator   | $libdir/plperl    |
=  plpython3u | f         &= nbsp; | f           =   | plpython3_call_handler | plpython3_inline_handler | plpython3_vali= dator | $libdir/plpython3 |
(6 rows)

argosrm=3D# \c postgres
= psql (12.4 (Ubuntu 12.4-1), server 12.5)
You are now connected to databa= se "postgres" as user "pgsql".
postgres=3D# select * from pg_pltemplate&= nbsp;   ;
  tmplname  | tmpltrusted | tmpldbacreate = |      tmplhandler     &n= bsp; |        tmplinline  &nbs= p;     |    tmplvalidator  &nb= sp; |    tmpllibrary    | tmplacl
-------= -----+-------------+---------------+------------------------+--------------= ------------+---------------------+-------------------+---------
 p= lpgsql    | t        = ;   | t         &nbs= p;   | plpgsql_call_handler   | plpgsql_inline_handler&= nbsp;  | plpgsql_validator   | $libdir/plpgsql   |=
 pltcl      | t    &= nbsp;      | t      =        | pltcl_call_handler   =   |           &= nbsp;           &nbs= p;  |           = ;          | $libdir/pltcl&nbs= p;    |
 pltclu     | f &n= bsp;         | f   &= nbsp;         | pltclu_call_handler=     |         &= nbsp;           &nbs= p;    |         = ;            | $libd= ir/pltcl     |
 plperl    = | t           | t &= nbsp;           | plperl_= call_handler    | plperl_inline_handler    | = plperl_validator    | $libdir/plperl    |  plperlu    | f      &nb= sp;    | f        &n= bsp;    | plperlu_call_handler   | plperlu_inline_= handler   | plperlu_validator   | $libdir/plperl &= nbsp;  |
 plpython3u | f      &= nbsp;    | f        =      | plpython3_call_handler | plpython3_inline_handle= r | plpython3_validator | $libdir/plpython3 |
(6 rows)

postgres= =3D# \c template1
psql (12.4 (Ubuntu 12.4-1), server 12.5)
You are no= w connected to database "template1" as user "pgsql".
template1=3D# selec= t * from pg_pltemplate    ;
  tmplname  | tmplt= rusted | tmpldbacreate |      tmplhandler &nb= sp;     |        tmp= linline        |    tmplv= alidator    |    tmpllibrary   = ; | tmplacl
------------+-------------+---------------+----------------= --------+--------------------------+---------------------+-----------------= --+---------
 plpgsql    | t    =        | t      = ;       | plpgsql_call_handler   | = plpgsql_inline_handler   | plpgsql_validator   | $libdi= r/plpgsql   |
 pltcl      | t&n= bsp;          | t  &= nbsp;          | pltcl_call_ha= ndler     |       &n= bsp;            = ;      |       =             &nb= sp; | $libdir/pltcl     |
 pltclu  &= nbsp;  | f          = | f            = ; | pltclu_call_handler    |     &n= bsp;            = ;        |     =             &nb= sp;   | $libdir/pltcl     |
 plperl&= nbsp;    | t        =    | t          = ;   | plperl_call_handler    | plperl_inline_handl= er    | plperl_validator    | $libdir/plperl&= nbsp;   |
 plperlu    | f  &nbs= p;        | f    &nb= sp;        | plperlu_call_handler &= nbsp; | plperlu_inline_handler   | plperlu_validator   = | $libdir/plperl    |
 plpython3u | f  &n= bsp;        | f    &= nbsp;        | plpython3_call_handler | = plpython3_inline_handler | plpython3_validator | $libdir/plpython3 |
(6= rows)

template1=3D#

<= div>




Od: "Magnus Hagander" <magnus@hagand= er.net>
Do: "Marcin Giedz" <marcin.giedz@arise.pl>
DW: "Adrian Klaver" <adrian.klaver@aklaver.com>, "Tom Lane" <= tgl@sss.pgh.pa.us>, "Devrim G=C3=BCnd=C3=BCz" <devrim@gunduz.org>,= "pgsql-general" <pgsql-general@lists.postgresql.org>
Wys=C5=82= ane: =C5=9Broda, 18 listopad 2020 10:36:10
Temat: Re: pg_upgr= ade from 12 to 13 failes with plpython2

On Wed, Nov 18, 2020 at 8:11 AM Marcin Giedz <= marcin.giedz@arise.pl> wrote:
>
> but my question still rema= ins the same - what causes pg_upgrade failure - are functions the reason? w= hat I did was to delete these 2 rows from pg_pltemplate as I thought this m= ay help:
>
> postgres=3D# delete from pg_pltemplate where tmpln= ame =3D 'plpython2u';
> DELETE 1
> postgres=3D# delete from pg_= pltemplate where tmplname =3D 'plpythonu';
> DELETE 1
>
>=
> but pg_upgrade still complains about plpython2:
>
> ca= t loadable_libraries.txt
> could not load library "$libdir/plpython2"= : ERROR:  could not access file "$libdir/plpython2": No such file or d= irectory
> In database: alaxx
> In database: template1

<= br>It's not the template that's interesting, it's the language itself youneed to drop. Log into each database and try to do that, and you will
= get something like this if you still have functions using it:
postgres= =3D# DROP LANGUAGE plpython2u;
ERROR:  cannot drop language plpytho= n2u because other objects depend on it
DETAIL:  function testfunc()= depends on language plpython2u
HINT:  Use DROP ... CASCADE to drop= the dependent objects too.

If you have no functions using it, it wi= ll just go away, and once you
have dropped it in both databases you shou= ld be good to go.

And of course, if there are functions depending on= it, you should
rebuild those on plpython3u before you drop plpython2u (= or drop the
functions if they're not in use).

--
 Magnus= Hagander
 Me: https://www.hagander.net/
 Work: https://www= .redpill-linpro.com/

--
Pozdrawiam
Marcin Giedz
Wiceprezes Zarz=C4= =85du

ARISE Sp. z o.o.
mob. +48 606 673 977=
mail: marcin.giedz@arise.pl

Al. Solidarno= =C5=9Bci 117
00-140 Warszawa
tel. +48 (22) 440 56 20
fax  +48= (22) 440 56 22
http://www.arise.pl

Grupa A= RISE: ARISE Sp. z o.o. (podmiot dominuj=C4=85cy), ARISE Services S.A., Al. = Solidarno=C5=9Bci 117, 00-140 Warszawa, S=C4=85d Rejonowy dla m. st. Warsza= wy w Warszawie XII Wydzia=C5=82 Gospodarczy Krajowego Rejestru S=C4=85doweg= o, KRS 0000316860, REGON 141595449, NIP 5272590610, kapita=C5=82 zak=C5=82a= dowy wp=C5=82acony 250,000.00 z=C5=82.
------=_Part_1487872_1264055887.1605693947373--