From: Shrikant Bhende <shrikantpostgresql@gmail.com>
To: pgsql-admin@lists.postgresql.org
To: pgsql-admin@postgresql.org
Subject: pg_upgrade from 9.5 to 12 fails due to plpythonu2
Date: Tue, 21 Jan 2020 15:00:24 +0530
Message-ID: <CAMTQpJCYUCSvw43cDbBUc2Ss950axtG2B5rYBcveZ0PvkXMqVA@mail.gmail.com> (raw)
Hello,
I am trying to upgrade a PostgreSQL cluster running on version 9.5 to 12,
most of the code is written in the form of procedures using pl/python
(version 2 and version 3), while running pg_upgrade I am getting below
error,
"Your installation references loadable libraries that are missing from the
new installation. You can add these libraries to the new installation,
or remove the functions using them from the old installation. A list of
problem libraries is in the file:
loadable_libraries.txt"
Old installation uses both the versions of plpython (2 and 3 and I am
getting error for 2 which is not supported in 12.
*Contents of loadable_libraries.txt *
could not load library "$libdir/plpython2": ERROR: could not access file
"$libdir/plpython2": No such file or directory
Database: cctest
Database: master
Database: postgres
Database: vmware
could not load library "$libdir/plugin_debugger": ERROR: could not access
file "$libdir/plugin_debugger": No such file or directory
Database: vmware
I have tried to install plpython2 with PostgreSQL 12 but I guess that's not
supported, also I am not able to find out anything related to debugging in
PostgreSQL.
What will be the efficient way to upgrade from 9.5 to 12 with plpython2
dependency in the code?
Thanks
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-admin@postgresql.org
Cc: shrikantpostgresql@gmail.com
Subject: Re: pg_upgrade from 9.5 to 12 fails due to plpythonu2
In-Reply-To: <CAMTQpJCYUCSvw43cDbBUc2Ss950axtG2B5rYBcveZ0PvkXMqVA@mail.gmail.com>
References: <CAMTQpJCYUCSvw43cDbBUc2Ss950axtG2B5rYBcveZ0PvkXMqVA@mail.gmail.com>
* 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