pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: indreek@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16178: DROP LANGUAGE plpythonu; doesn't actually drop language.
Date: Mon, 23 Dec 2019 08:46:33 -0500
Message-ID: <18081.1577108793@sss.pgh.pa.us> (raw)
In-Reply-To: <16178-d556fe3d69ee5271@postgresql.org>
References: <16178-d556fe3d69ee5271@postgresql.org>

PG Bug reporting form <noreply@postgresql.org> writes:
> [ assorted manual manipulation of plpythonu language ]

> Doing the same thing with extensions works fine.

This is in the category of "if it breaks you get to keep both pieces".
We don't really support installing PLs via any other means except their
extensions anymore.

In the case at hand, I believe what's biting you is that CREATE LANGUAGE
auto-created the language's support functions (because the alternative
would be to fail entirely) but DROP LANGUAGE didn't drop them.  Nobody
is going to work on changing that.  The actual likely future direction
of development is for the auto-creation behavior to go away [1], so
there would hardly be any point in hacking up DROP LANGUAGE.

I'd suggest manually dropping the support functions
(plpython_call_handler, plpython_inline_handler, plpython_validator)
to get back to an upgradable state.  Or you could install plpython2
in the new installation.

			regards, tom lane

[1] https://www.postgresql.org/message-id/flat/5889.1566415762%40sss.pgh.pa.us





view thread (2+ messages)

Message-ID: <18081.1577108793@sss.pgh.pa.us>
Permalink:  ../18081.1577108793@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18081.1577108793@sss.pgh.pa.us

 · 

reply

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-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, indreek@gmail.com
  Subject: Re: BUG #16178: DROP LANGUAGE plpythonu; doesn't actually drop language.
  In-Reply-To: <18081.1577108793@sss.pgh.pa.us>
  References: <16178-d556fe3d69ee5271@postgresql.org> <18081.1577108793@sss.pgh.pa.us>

* 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