Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1itprv-0006aM-Fs for pgsql-admin@arkaria.postgresql.org; Tue, 21 Jan 2020 09:30:43 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1itpru-0004Ud-6T for pgsql-admin@arkaria.postgresql.org; Tue, 21 Jan 2020 09:30:42 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1itprt-0004UV-Qg for pgsql-admin@lists.postgresql.org; Tue, 21 Jan 2020 09:30:41 +0000 Received: from mail-qt1-x830.google.com ([2607:f8b0:4864:20::830]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1itpro-0001RB-P5 for pgsql-admin@postgresql.org; Tue, 21 Jan 2020 09:30:41 +0000 Received: by mail-qt1-x830.google.com with SMTP id e5so2055303qtm.6 for ; Tue, 21 Jan 2020 01:30:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=eTYj2okOUcPxDpxNNdsAXw8fXOWuV6h8+4aCtoisb+E=; b=jro3A1c2RbHe+DpDlEL+xKGi8kCYCpABvUqL2B1WBC9kXyX52FEiTK15/TIC18M8Oi XGKNao9QJgqu1zaQ5Q1gcxvaziVWbEcUMnJ4JRRP/epVHTNKml4JybM+FGhxHhHULvI7 u7P70Qavhpa9CRpRxji/qcqRJChM8jOzCHtpfSvCuQCvjSXlbmuT5sNEFy6CxtfBjuPc kYOCSpto0XQcUizPDmVQlPFFUq4ypz5xdRqsWlGEw8a3nKOQaObWVSZBZiel9bli8gJo 411wN7F/IIiOvMFNmFVkeSUEsZ2uijomlqfsaJyqiUchtCe4TnUAiMxpBxHqDtPt5gnD 05Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eTYj2okOUcPxDpxNNdsAXw8fXOWuV6h8+4aCtoisb+E=; b=tSD8ADs84gkqmASdfk7ExOVxR/gh5+gTl797YJRyoXwiOU0dDIusBc3z8gYXv5jikn L7+95qVta7gu8biVHNc7ZBK2cg6P4M08rIQQ56F8wb2uBHyE5e7AIt4pCJvmEvERHzdZ GRyRBqHeFwPysLZmJ4DxnTkYgaXDYVYFFDz2kT0h4lV69W5mwDHU1br6KbHGE9K0hH1f BjCc/hk+9TU4uOaREfnMgFGSGJbxmRTWTFfVEVho749IdX8nSEzqhA3yAXE8zncoGx1N Xt7TJmEw3VdS0esr2wdpBHpsl+t6E1J54ZgDFJd7O3IHmmvhxURLyWu9LLOpQvsF7pZr Ry+Q== X-Gm-Message-State: APjAAAVxt86nbHsRyMgkrNe5KGO4qcKQLEa8OtbKn6MMLtAUr2pOicgw WAfbrAF66kM6YYAU1HBDhY7CQ0crBIKIbeSWRXc= X-Google-Smtp-Source: APXvYqyH9NzVFp9p4dmHmvlIlkCmZgSi9iD8lDZkEr/R/FD7OWPlNKduPKbcxosbTQFpmN/35fs4zMDD5NToNbCOFcs= X-Received: by 2002:aed:304e:: with SMTP id 72mr3421188qte.113.1579599035276; Tue, 21 Jan 2020 01:30:35 -0800 (PST) MIME-Version: 1.0 From: Shrikant Bhende Date: Tue, 21 Jan 2020 15:00:24 +0530 Message-ID: Subject: pg_upgrade from 9.5 to 12 fails due to plpythonu2 To: pgsql-admin@lists.postgresql.org, pgsql-admin@postgresql.org Content-Type: multipart/alternative; boundary="00000000000062a268059ca30f89" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --00000000000062a268059ca30f89 Content-Type: text/plain; charset="UTF-8" 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 --00000000000062a268059ca30f89 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,

I am trying to upgrade=C2=A0a Po= stgreSQL 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,=C2=A0

"Your installation references loadable libraries that are missing fro= m the
new installation.=C2=A0 You can add these libraries to the new i= nstallation,
or remove the functions using them from the old installatio= n.=C2=A0 A list of
problem libraries is in the file:
=C2=A0 =C2= =A0 loadable_libraries.txt"

Old installation = uses both the versions of plpython (2 and 3 and I am getting error for 2 wh= ich is not supported in 12.

Contents=C2=A0of lo= adable_libraries.txt=C2=A0

could not load libr= ary "$libdir/plpython2": ERROR: =C2=A0could not access file "= ;$libdir/plpython2": No such file or directory
Database: cctest
= Database: master
Database: postgres
Database: vmware
could not loa= d library "$libdir/plugin_debugger": ERROR: =C2=A0could not acces= s file "$libdir/plugin_debugger": No such file or directory
Da= tabase: vmware

I have tried to install plpytho= n2 with PostgreSQL 12 but I guess that's not supported, also I am not a= ble to find out anything related to debugging in PostgreSQL.
What= will be the efficient way to upgrade from 9.5 to 12 with plpython2 depende= ncy in the code?

Thanks=C2=A0

= --00000000000062a268059ca30f89--