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 1kf79R-0007gm-IV for pgsql-general@arkaria.postgresql.org; Tue, 17 Nov 2020 20:00:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kf79Q-0000jU-Aa for pgsql-general@arkaria.postgresql.org; Tue, 17 Nov 2020 20:00:28 +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 1kf79P-0000jG-Td for pgsql-general@lists.postgresql.org; Tue, 17 Nov 2020 20:00:28 +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 1kf79K-0000pV-ER for pgsql-general@lists.postgresql.org; Tue, 17 Nov 2020 20:00:26 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.arise.pl (Postfix) with ESMTP id 5EBEA34D35B for ; Tue, 17 Nov 2020 21:00:19 +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 h2lQSrbacj-K for ; Tue, 17 Nov 2020 21:00:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.arise.pl (Postfix) with ESMTP id 5751634D4FC for ; Tue, 17 Nov 2020 21:00:18 +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 pMCYwJWc-dAu for ; Tue, 17 Nov 2020 21:00:18 +0100 (CET) Received: from mail1.arise (mail1.arise [172.16.198.9]) by mail.arise.pl (Postfix) with ESMTP id 2C70734D35B for ; Tue, 17 Nov 2020 21:00:18 +0100 (CET) Date: Tue, 17 Nov 2020 21:00:17 +0100 (CET) From: Marcin Giedz To: pgsql-general Message-ID: <1965058112.1483134.1605643217808.JavaMail.zimbra@arise.pl> Subject: pg_upgrade from 12 to 13 failes with plpython2 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1483133_1674005572.1605643217806" 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: IFRFIL7Dl2BpLeMUfciajWD9LMoKjw== List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ------=_Part_1483133_1674005572.1605643217806 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hi all, trying to performe upgrade from 12 to 13 installed from Centos8 repo gives such error: cat loadable_libraries.txt could not load library "$libdir/plpython2": ERROR: could not access file "$libdir/plpython2": No such file or directory digging around: 1. drop extension plpythonu; ERROR: extension "plpythonu" does not exist 2. postgres=# select * from pg_pltemplate ; tmplname | tmpltrusted | tmpldbacreate | tmplhandler | tmplinline | tmplvalidator | tmpllibrary | tmplacl ------------+-------------+---------------+------------------------+--------------------------+---------------------+-------------------+--------- plpgsql | t | t | plpgsql_call_handler | plpgsql_inline_handler | plpgsql_validator | $libdir/plpgsql | pltcl | t | t | pltcl_call_handler | | | $libdir/pltcl | pltclu | f | f | pltclu_call_handler | | | $libdir/pltcl | plperl | t | t | plperl_call_handler | plperl_inline_handler | plperl_validator | $libdir/plperl | plperlu | f | f | plperlu_call_handler | plperlu_inline_handler | plperlu_validator | $libdir/plperl | plpythonu | f | f | plpython_call_handler | plpython_inline_handler | plpython_validator | $libdir/plpython2 | plpython2u | f | f | plpython2_call_handler | plpython2_inline_handler | plpython2_validator | $libdir/plpython2 | plpython3u | f | f | plpython3_call_handler | plpython3_inline_handler | plpython3_validator | $libdir/plpython3 | (8 rows) 3. postgres=# select * from pg_language ; oid | lanname | lanowner | lanispl | lanpltrusted | lanplcallfoid | laninline | lanvalidator | lanacl -------+----------+----------+---------+--------------+---------------+-----------+--------------+-------- 12 | internal | 10 | f | f | 0 | 0 | 2246 | 13 | c | 10 | f | f | 0 | 0 | 2247 | 14 | sql | 10 | f | t | 0 | 0 | 2248 | 14177 | plpgsql | 10 | t | t | 14174 | 14175 | 14176 | (4 rows) 4. postgres=# select DISTINCT l.lanname as function_language postgres-# from pg_proc p postgres-# left join pg_language l on p.prolang = l.oid; function_language ------------------- c sql internal (3 rows) 5. postgres=# SELECT oid::regprocedure postgres-# FROM pg_catalog.pg_proc postgres-# WHERE probin = '$libdir/plpython2'; oid ----- (0 rows) Question: where is plpython2 comming from during pg_upgrade? Is this pg_upgrade bug or something else? Thx Marcin ------=_Part_1483133_1674005572.1605643217806 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
Hi all, trying to performe upgrade from 12 = to 13 installed from Centos8 repo gives such error:

cat loadable_libraries.txt =
could not load library "$libdir/plpython2": ERROR:  could not acce= ss file "$libdir/plpython2": No such file or directory

digging around:
1.
drop extension plpythonu;
ER= ROR:  extension "plpythonu" does not exist

2.
postgres=3D# s= elect * from pg_pltemplate ;
  tmplname  | tmpltrusted | tmpld= bacreate |      tmplhandler    = ;   |        tmplinline &= nbsp;      |    tmplvalidator =    |    tmpllibrary    | tmplacl ------------+-------------+---------------+------------------------+-----= ---------------------+---------------------+-------------------+--------- plpgsql    | t      &n= bsp;    | t        &= nbsp;    | plpgsql_call_handler   | plpgsql_inline= _handler   | plpgsql_validator   | $libdir/plpgsql = ;  |
 pltcl      | t  &nbs= p;        | t    &nb= sp;        | pltcl_call_handler &nb= sp;   |         &nbs= p;            &= nbsp;   |         &n= bsp;           | $libdir/= pltcl     |
 pltclu     | = f           | f &nbs= p;           | pltclu_cal= l_handler    |       &nbs= p;            &= nbsp;     |       &n= bsp;            = ; | $libdir/pltcl     |
 plperl  &nb= sp;  | t           |= t             = | plperl_call_handler    | plperl_inline_handler  =   | plperl_validator    | $libdir/plperl  &nb= sp; |
 plperlu    | f     =       | f       = ;      | plperlu_call_handler   | plperl= u_inline_handler   | plperlu_validator   | $libdir/plpe= rl    |
 plpythonu  | f    = ;       | f     &nbs= p;       | plpython_call_handler  | plpy= thon_inline_handler  | plpython_validator  | $libdir/plpython2 | =
 plpython2u | f        &nb= sp;  | f          &n= bsp;  | plpython2_call_handler | plpython2_inline_handler | plpython2_= validator | $libdir/plpython2 |
 plpython3u | f   &= nbsp;       | f     =         | plpython3_call_handler | plpyt= hon3_inline_handler | plpython3_validator | $libdir/plpython3 |
(8 rows= )

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


4.
postgres=3D# select=   DISTINCT l.lanname as function_language
postgres-# from pg_proc p=
postgres-# left join pg_language l on p.prolang =3D l.oid;
 fun= ction_language
-------------------
 c
 sql
 int= ernal
(3 rows)

5.

postgres=3D# SELECT oid::regproce= dure
postgres-# FROM pg_catalog.pg_proc
postgres-# WHERE probin =3D '= $libdir/plpython2';
 oid
-----
(0 rows)



Question: where is plpython2 comming from during= pg_upgrade? Is this pg_upgrade bug or something else?


Thx
Marcin


------=_Part_1483133_1674005572.1605643217806--