Re: Issue with Restore dump with plpythonu, plpython3u installed on postgres16

From: Muhammad Usman Khan <usman(dot)k(at)bitnine(dot)net>
To: Sam Son <sam89(dot)g(at)gmail(dot)com>
Cc: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: Issue with Restore dump with plpythonu, plpython3u installed on postgres16
Date: 2024-09-03 16:25:17
Message-ID: CAPnRvGu-7B7J1i624KcJ-V2nUkuqGLsDT4Ae=EGbAPXJ=8A4fQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
You need to install plpython3u on your new server and also make sure to use
python3. You need to make changes to your functions also to make them
compatible with python3

On Tue, 3 Sept 2024 at 19:31, Sam Son <sam89(dot)g(at)gmail(dot)com> wrote:

> Hi Team,
>
> I am working on a project where we have applications run on old versions
> of postgres, we are using *plpythonu* in all Functions extension,
>
> Now we have upgraded postgres to latest which does not support plpythonu
> anymore, So we are facing an issue while restoring dump which has
> plpythonu, but latest postgres support only plpython3u.
>
> *"pg_restore: error: could not execute query: ERROR: language "plpythonu"
> does not exist"*
>
> How to change plpythonu to plpython3u in the dump file before pg_restore.
> or Does postgres have any option to handle directly via config.
>
> Thanks in Advance
>
> Thanks,
> Samson G
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message arun chirappurath 2024-09-03 16:34:21 Table and data comparison
Previous Message Adrian Klaver 2024-09-03 15:16:43 Re: Issue with Restore dump with plpythonu, plpython3u installed on postgres16