| From: | Bruce Momjian <bruce(at)momjian(dot)us> |
|---|---|
| To: | Rob Sargent <robjsargent(at)gmail(dot)com> |
| Cc: | Devrim Gündüz <devrim(at)gunduz(dot)org>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Marcin Giedz <marcin(dot)giedz(at)arise(dot)pl>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Magnus Hagander <magnus(at)hagander(dot)net>, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, pgsql-general <pgsql-general(at)lists(dot)postgresql(dot)org> |
| Subject: | Re: pg_upgrade from 12 to 13 failes with plpython2 |
| Date: | 2020-11-19 05:57:38 |
| Message-ID: | 20201119055738.GA9349@momjian.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On Wed, Nov 18, 2020 at 10:57:00PM -0700, Rob Sargent wrote:
> > It issues this message and fails:
> >
> > if (PQntuples(res) > 0)
> > {
> > if (!found_public_plpython_handler)
> > {
> > pg_log(PG_WARNING,
> > "\nThe old cluster has a \"plpython_call_handler\" function defined\n"
> > "in the \"public\" schema which is a duplicate of the one defined\n"
> > "in the \"pg_catalog\" schema. You can confirm this by executing\n"
> > "in psql:\n"
> > "\n"
> > " \\df *.plpython_call_handler\n"
> > "\n"
> > "The \"public\" schema version of this function was created by a\n"
> > "pre-8.1 install of plpython, and must be removed for pg_upgrade\n"
> > "to complete because it references a now-obsolete \"plpython\"\n"
> > "shared object file. You can remove the \"public\" schema version\n"
> > "of this function by running the following command:\n"
> > "\n"
> > " DROP FUNCTION public.plpython_call_handler()\n"
> > "\n"
> > "in each affected database:\n"
> > "\n");
> > }
> > pg_log(PG_WARNING, " %s\n", active_db->db_name);
> > found_public_plpython_handler = true;
> > }
> > PQclear(res);
> > }
> >
> > PQfinish(conn);
> > }
> >
> > if (found_public_plpython_handler)
> > pg_fatal("Remove the problem functions from the old cluster to continue.\n");
> >
> >
> Does this jive with OP’s experience? Or should it?
It didn't trigger this message for him, and I am also wondering if it
should have.
--
Bruce Momjian <bruce(at)momjian(dot)us> https://momjian.us
EnterpriseDB https://enterprisedb.com
The usefulness of a cup is in its emptiness, Bruce Lee
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Paul Förster | 2020-11-19 06:04:43 | Re: create type with %type or %rowtype |
| Previous Message | Rob Sargent | 2020-11-19 05:57:00 | Re: pg_upgrade from 12 to 13 failes with plpython2 |