pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcin Giedz <marcin.giedz@arise.pl>
To: Adrian Klaver <adrian.klaver@aklaver.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
To: Devrim Gündüz <devrim@gunduz.org>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: pg_upgrade from 12 to 13 failes with plpython2
Date: Wed, 18 Nov 2020 08:10:52 +0100 (CET)
Message-ID: <410666958.1483934.1605683452910.JavaMail.zimbra@arise.pl> (raw)
In-Reply-To: <f8fe260a-4518-5901-15b7-43f56b373d71@aklaver.com>
References: <1965058112.1483134.1605643217808.JavaMail.zimbra@arise.pl>
	<7a90ff88645ac6efcdc1436365a07d63b04b90d2.camel@gunduz.org>
	<8174b8ab-b082-b136-a933-4aceaf15a985@aklaver.com>
	<dfd87b12e00fae5829feb655bec10aac94acd37c.camel@gunduz.org>
	<7820164d-5086-b3e2-e200-3f02f07b6280@aklaver.com>
	<938921.1605648230@sss.pgh.pa.us>
	<f722e1f93c75c17826460951e596baeb0d4a4e0c.camel@gunduz.org>
	<f8fe260a-4518-5901-15b7-43f56b373d71@aklaver.com>

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_pltemplate as I thought this may help: 

postgres=# delete from pg_pltemplate where tmplname = 'plpython2u'; 
DELETE 1 
postgres=# delete from pg_pltemplate where tmplname = 'plpythonu'; 
DELETE 1 


but pg_upgrade still complains about plpython2: 

cat loadable_libraries.txt 
could not load library "$libdir/plpython2": ERROR: could not access file "$libdir/plpython2": No such file or directory 
In database: alaxx 
In database: template1 



marcin@carbon2:~$ psql -U pgsql -h 192.168.89.64 alaxx 
psql (12.4 (Ubuntu 12.4-1)) 
Type "help" for help. 

argosrm=# 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 | 
plpython3u | f | f | plpython3_call_handler | plpython3_inline_handler | plpython3_validator | $libdir/plpython3 | 
(6 rows) 

argosrm=# \q 
marcin@carbon2:~$ psql -U pgsql -h 192.168.89.64 template1 
psql (12.4 (Ubuntu 12.4-1)) 
Type "help" for help. 

template1=# 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 | 
plpython3u | f | f | plpython3_call_handler | plpython3_inline_handler | plpython3_validator | $libdir/plpython3 | 
(6 rows) 


what can I do next ? 


Thx 
Marcin 


Od: "Adrian Klaver" <adrian.klaver@aklaver.com> 
Do: "Devrim Gündüz" <devrim@gunduz.org>, "Tom Lane" <tgl@sss.pgh.pa.us> 
DW: "Marcin Giedz" <marcin.giedz@arise.pl>, "pgsql-general" <pgsql-general@lists.postgresql.org> 
Wysłane: wtorek, 17 listopad 2020 23:30:44 
Temat: Re: pg_upgrade from 12 to 13 failes with plpython2 

On 11/17/20 2:17 PM, Devrim Gündüz wrote: 
> 
> Hi, 
> 
> On Tue, 2020-11-17 at 16:23 -0500, Tom Lane wrote: 
>> You're confusing what the source code can do (which is what the 
>> manual documents) versus what individual packagers choose to support. 
>> The packagers frequently don't have a lot of choice in the matter; 
>> once their platform drops python2, they can't support plpython2. 
> 

First let me say: 

1) I don't use Python 2 anymore. 

2) I have converted my plpython(2)u functions to plpythonu3u 

3) I don't use RH family distros. 

> Well, CentOS 8 "supports" PY2, however given that Christoph also 
> dropped PY2 support in Debian packages as of PostgreSQL 12 [1], and 
> given that *Python 2 is unsupported* anyway, I just wanted to drop 
> support at this point. 

Read that sentence again and see the inherent disconnect between the 
beginning and end. 

As a packager you are in charge of how the packaging is done. Still 
announcing a change that effectively nullifies the documentation would 
to me be something that should be announced somewhere else than a list 
that I'm guessing 99% of the users don't read. 

> 
> FWIW, older PostgreSQL major versions still have PY 2 support. This is 
> for PostgreSQL 13 only. 

> 
> [1] : https://www.postgresql.org/message-id/20200522080114.GA449430%40msg.df7cb.de 
> 
> Regards, 
> 


-- 
Adrian Klaver 
adrian.klaver@aklaver.com 

-- 
Pozdrawiam 
Marcin Giedz 
Wiceprezes Zarządu 

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

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

Grupa ARISE: ARISE Sp. z o.o. (podmiot dominujący), ARISE Services S.A., Al. Solidarności 117, 00-140 Warszawa, Sąd Rejonowy dla m. st. Warszawy w Warszawie XII Wydział Gospodarczy Krajowego Rejestru Sądowego, KRS 0000316860, REGON 141595449, NIP 5272590610, kapitał zakładowy wpłacony 250,000.00 zł. 

view thread (34+ messages)  latest in thread

Message-ID: <410666958.1483934.1605683452910.JavaMail.zimbra@arise.pl>
Permalink:  ../410666958.1483934.1605683452910.JavaMail.zimbra@arise.pl/
Also on:    postgresql.org/message-id/410666958.1483934.1605683452910.JavaMail.zimbra@arise.pl

 · 

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: marcin.giedz@arise.pl, adrian.klaver@aklaver.com, tgl@sss.pgh.pa.us, devrim@gunduz.org
  Subject: Re: pg_upgrade from 12 to 13 failes with plpython2
  In-Reply-To: <410666958.1483934.1605683452910.JavaMail.zimbra@arise.pl>
  References: <1965058112.1483134.1605643217808.JavaMail.zimbra@arise.pl> <7a90ff88645ac6efcdc1436365a07d63b04b90d2.camel@gunduz.org> <8174b8ab-b082-b136-a933-4aceaf15a985@aklaver.com> <dfd87b12e00fae5829feb655bec10aac94acd37c.camel@gunduz.org> <7820164d-5086-b3e2-e200-3f02f07b6280@aklaver.com> <938921.1605648230@sss.pgh.pa.us> <f722e1f93c75c17826460951e596baeb0d4a4e0c.camel@gunduz.org> <f8fe260a-4518-5901-15b7-43f56b373d71@aklaver.com> <410666958.1483934.1605683452910.JavaMail.zimbra@arise.pl>

* 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