Re: pg_upgrade Python version issue on openSUSE - Mailing list pgsql-general

From Paul Förster
Subject Re: pg_upgrade Python version issue on openSUSE
Date
Msg-id 06317862-1908-48C7-8766-F6D1B4BFEB9F@gmail.com
Whole thread Raw
In response to Re: pg_upgrade Python version issue on openSUSE  (Paul Förster <paul.foerster@gmail.com>)
Responses Re: pg_upgrade Python version issue on openSUSE  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hi,

> On 26. Sep, 2020, at 11:42, Paul Förster <paul.foerster@gmail.com> wrote:
>
> the two things I forgot to mention are:
>
> a) the versions I will be upgrading from are 11.9 and 12.4. The above thing happens with 12.4. Since I didn't check
11.9yet, I cannot say if it appears there too. 
>
> b) the 12.4 software also does not have plpython2 files in its lib64 directory. Both only have plpython3.so:
>
> $ ll /data/postgres/*/lib64/plpython*
> -rwxr-xr-x 1 postgres dba 151672 Aug 13 16:28 /data/postgres/12.4/lib64/plpython3.so
> -rwxr-xr-x 1 postgres dba 151544 Sep 26 10:38 /data/postgres/13.0/lib64/plpython3.so
>
> Any help would be appreciated. Thanks very much in advance.

seems, I found some kind of solution:

- before running "pg_upgrade --check -k":
  drop extension plpythonu;
- run pg_upgrade
- after the upgrade:
  create extension plpython3u;

Is this the correct way?

Cheers,
Paul


pgsql-general by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: PG 13 trusted extensions and pg_available_extensions
Next
From: Tom Lane
Date:
Subject: Re: pg_upgrade Python version issue on openSUSE