Re: pg_upgrade Python version issue on openSUSE

From: Paul Förster <paul(dot)foerster(at)gmail(dot)com>
To: PostgreSQL General <pgsql-general(at)lists(dot)postgresql(dot)org>
Subject: Re: pg_upgrade Python version issue on openSUSE
Date: 2020-09-26 10:58:51
Message-ID: 06317862-1908-48C7-8766-F6D1B4BFEB9F@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

> On 26. Sep, 2020, at 11:42, Paul Förster <paul(dot)foerster(at)gmail(dot)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.9 yet, 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2020-09-26 14:07:32 Re: pg_upgrade Python version issue on openSUSE
Previous Message Julien Rouhaud 2020-09-26 10:06:34 Re: PG 13 trusted extensions and pg_available_extensions