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 1kfRbf-0002bT-Hd for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 17:50:59 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kfRbe-0005Jk-GK for pgsql-general@arkaria.postgresql.org; Wed, 18 Nov 2020 17:50:58 +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 1kfRbe-0005Jd-7a for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 17:50:58 +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 1kfRbb-0008Kk-Lb for pgsql-general@lists.postgresql.org; Wed, 18 Nov 2020 17:50:57 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.arise.pl (Postfix) with ESMTP id 752C534D387; Wed, 18 Nov 2020 18:50:54 +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 hrCh1ivT-ovK; Wed, 18 Nov 2020 18:50:43 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.arise.pl (Postfix) with ESMTP id 4E56834D3E6; Wed, 18 Nov 2020 18:50:43 +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 L-dxP_u7QavF; Wed, 18 Nov 2020 18:50:43 +0100 (CET) Received: from mail1.arise (mail1.arise [172.16.198.9]) by mail.arise.pl (Postfix) with ESMTP id 1863034D387; Wed, 18 Nov 2020 18:50:43 +0100 (CET) Date: Wed, 18 Nov 2020 18:50:42 +0100 (CET) From: Marcin Giedz To: Laurenz Albe Cc: Magnus Hagander , Adrian Klaver , Tom Lane , Devrim =?utf-8?B?R8O8bmTDvHo=?= , pgsql-general Message-ID: <528508727.1496543.1605721842899.JavaMail.zimbra@arise.pl> In-Reply-To: <296a13f436781af544e623671793a7280bf2fb23.camel@cybertec.at> References: <1965058112.1483134.1605643217808.JavaMail.zimbra@arise.pl> <938921.1605648230@sss.pgh.pa.us> <410666958.1483934.1605683452910.JavaMail.zimbra@arise.pl> <241497908.1487873.1605693947374.JavaMail.zimbra@arise.pl> <296a13f436781af544e623671793a7280bf2fb23.camel@cybertec.at> Subject: Re: pg_upgrade from 12 to 13 failes with plpython2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1496542_1933467297.1605721842898" 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: UTQrQcUCzv+84+B4JEWd6fWFajRYrg== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1496542_1933467297.1605721842898 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, not the case I believe :=20 postgres=3D# \l=20 List of databases=20 Name | Owner | Encoding | Collate | Ctype | Access privileges=20 -----------+-------+----------+-------------+-------------+----------------= ---=20 argosrm | pgsql | UTF8 | pl_PL.UTF-8 | pl_PL.UTF-8 |=20 postgres | pgsql | UTF8 | pl_PL.UTF-8 | pl_PL.UTF-8 |=20 template0 | pgsql | UTF8 | pl_PL.UTF-8 | pl_PL.UTF-8 | =3Dc/pgsql +=20 | | | | | pgsql=3DCTc/pgsql=20 template1 | pgsql | UTF8 | pl_PL.UTF-8 | pl_PL.UTF-8 | =3Dc/pgsql +=20 | | | | | pgsql=3DCTc/pgsql=20 (4 rows)=20 all DBs checked and no plpython(2u) is found except for plpython3u=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: argosrm=20 In database: template1=20 Thx=20 M.=20 Od: "Laurenz Albe" =20 Do: "Marcin Giedz" , "Magnus Hagander" =20 DW: "Adrian Klaver" , "Tom Lane" , "Devrim G=C3=BCnd=C3=BCz" , "pgsql-general" =20 Wys=C5=82ane: =C5=9Broda, 18 listopad 2020 12:58:45=20 Temat: Re: pg_upgrade from 12 to 13 failes with plpython2=20 On Wed, 2020-11-18 at 11:05 +0100, Marcin Giedz wrote:=20 > right, I had one function relaying on plpython2u so I changed it... but t= he again pg_upgrade claims error with python:=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: argosrm=20 > In database: template1=20 The problematic function is perhaps in another database.=20 Look everywhere.=20 Yours,=20 Laurenz Albe=20 --=20 Cybertec | https://www.cybertec-postgresql.com=20 ------=_Part_1496542_1933467297.1605721842898 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi, not the case I believe :
=
postgres=3D# \l
   &n= bsp;            = ;            &n= bsp; List of databases
   Name    | Owner | Enc= oding |   Collate   |    Ctype &nbs= p;  | Access privileges
-----------+-------+----------+-----------= --+-------------+-------------------
 argosrm   | pgsql |= UTF8     | pl_PL.UTF-8 | pl_PL.UTF-8 |
 postg= res  | pgsql | UTF8     | pl_PL.UTF-8 | pl_PL.UTF-= 8 |
 template0 | pgsql | UTF8     | pl_PL.UTF-= 8 | pl_PL.UTF-8 | =3Dc/pgsql        = ; +
           | =       |       &= nbsp;  |          &n= bsp;  |          &nb= sp;  | pgsql=3DCTc/pgsql
 template1 | pgsql | UTF8  =    | pl_PL.UTF-8 | pl_PL.UTF-8 | =3Dc/pgsql   &nbs= p;     +
       &= nbsp;   |       |   =        |      &= nbsp;      |      &n= bsp;      | pgsql=3DCTc/pgsql
(4 rows)

all DBs checked and no plpython(2= u) is found except for plpython3u

<= /div>
...

<= /div>
cat loadable_libraries.txt
could not load library "$libdir/pl= python2": ERROR:  could not access file "$libdir/plpython2": No such f= ile or directory
In database: argosrm
In database: template1

Thx
M.

=


Od: "Laurenz Albe" <laurenz.albe@cybertec.at>= ;
Do: "Marcin Giedz" <marcin.giedz@arise.pl>, "Magnus Hagan= der" <magnus@hagander.net>
DW: "Adrian Klaver" <adrian.k= laver@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=82ane: =C5=9Broda, 18 listopad 20= 20 12:58:45
Temat: Re: pg_upgrade from 12 to 13 failes with plpyt= hon2

On Wed, 2= 020-11-18 at 11:05 +0100, Marcin Giedz wrote:
> right, I had one func= tion relaying on plpython2u so I changed it... but the again pg_upgrade cla= ims error with python:
>
> cat loadable_libraries.txt
>= could not load library "$libdir/plpython2": ERROR:  could not access = file "$libdir/plpython2": No such file or directory
> In database: ar= gosrm
> In database: template1

The problematic function is per= haps in another database.
Look everywhere.

Yours,
Laurenz Albe=
--
Cybertec | https://www.cybertec-postgresql.com

------=_Part_1496542_1933467297.1605721842898--