pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Paul Förster <paul.foerster@gmail.com>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: pg_upgrade Python version issue on openSUSE
Date: Sat, 26 Sep 2020 10:49:26 -0400
Message-ID: <1999120.1601131766@sss.pgh.pa.us> (raw)
In-Reply-To: <9D64B513-77D4-41D9-87E5-0727FAF96C84@gmail.com>
References: <553A044A-D0E3-475D-8DC0-5845381CB086@gmail.com>
	<1FB046FC-BE42-4D66-B0AE-E94B6CB9498E@gmail.com>
	<06317862-1908-48C7-8766-F6D1B4BFEB9F@gmail.com>
	<1990004.1601129252@sss.pgh.pa.us>
	<9D64B513-77D4-41D9-87E5-0727FAF96C84@gmail.com>

=?utf-8?Q?Paul_F=C3=B6rster?= <paul.foerster@gmail.com> writes:
> On 26. Sep, 2020, at 16:07, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> However, I don't understand how "drop extension plpythonu"
>> worked for you, given your previous query showing that
>> that extension wasn't installed.

> just checked with another 12.4. It's the same:

> postgres=# select * from pg_available_extension_versions where installed;
>   name   | version | installed | superuser | relocatable |   schema   | requires |                           comment                            
> ---------+---------+-----------+-----------+-------------+------------+----------+--------------------------------------------------------------
>  plperlu | 1.0     | t         | t         | f           | pg_catalog |          | PL/PerlU untrusted procedural language
>  dblink  | 1.2     | t         | t         | t           |            |          | connect to other PostgreSQL databases from within a database
>  plpgsql | 1.0     | t         | f         | f           | pg_catalog |          | PL/pgSQL procedural language
>  plperl  | 1.0     | t         | f         | f           | pg_catalog |          | PL/Perl procedural language
> (4 rows)

> postgres=# drop extension plpythonu ;
> DROP EXTENSION
> postgres=# create extension plpython3u ;
> CREATE EXTENSION

Actually, now that I think about it, you're querying the wrong view.
I'm too lazy to check the source code right now, but I'm pretty sure
that pg_available_extension_versions is mostly driven off what control
files exist in the on-disk libdir.  But that may have little to do with
what's in the system catalogs.  You should have checked pg_extension,
or just "\dx" in psql.

			regards, tom lane





view thread (28+ messages)  latest in thread

Message-ID: <1999120.1601131766@sss.pgh.pa.us>
Permalink:  ../1999120.1601131766@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1999120.1601131766@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-general@postgresql.org
  Cc: tgl@sss.pgh.pa.us, paul.foerster@gmail.com
  Subject: Re: pg_upgrade Python version issue on openSUSE
  In-Reply-To: <1999120.1601131766@sss.pgh.pa.us>
  References: <553A044A-D0E3-475D-8DC0-5845381CB086@gmail.com> <1FB046FC-BE42-4D66-B0AE-E94B6CB9498E@gmail.com> <06317862-1908-48C7-8766-F6D1B4BFEB9F@gmail.com> <1990004.1601129252@sss.pgh.pa.us> <9D64B513-77D4-41D9-87E5-0727FAF96C84@gmail.com> <1999120.1601131766@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