pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Paul Förster <paul.foerster@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: PostgreSQL General <pgsql-general@lists.postgresql.org>
Subject: Re: pg_upgrade Python version issue on openSUSE
Date: Sat, 26 Sep 2020 15:09:00 -0700
Message-ID: <c1ed9580-1d13-8f9a-ece7-caa672a7b23f@aklaver.com> (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>

On 9/26/20 7:35 AM, Paul Förster wrote:
> Hi Tom,
> 

> 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
> 
> The "plpython" and "plpython3u" for the drop and create extension statements came by entering "plpy" and then pressing tab. So PostgreSQL knew about them. Still, as you can see, I could drop pypythonu again though it did not appear in the query. After the create extension, it appears as it should:
> 
> 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
>   plpython3u | 1.0     | t         | t         | f           | pg_catalog |          | PL/Python3U untrusted procedural language
>   plpgsql    | 1.0     | t         | f         | f           | pg_catalog |          | PL/pgSQL procedural language
>   plperl     | 1.0     | t         | f         | f           | pg_catalog |          | PL/Perl procedural language
> (5 rows)
> 
> Is this a bug in 12.4 not showing the extension?

Could it be that at some point in these instances history plpython* 
where installed as CREATE LANGUAGE and you are dealing with the vestiges 
of that?

Are you able to go back and reconstruct them and then do \dL (languages) 
and \dx (extensions)?

> 
> Cheers,
> Paul
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (28+ messages)  latest in thread

Message-ID: <c1ed9580-1d13-8f9a-ece7-caa672a7b23f@aklaver.com>
Permalink:  ../c1ed9580-1d13-8f9a-ece7-caa672a7b23f@aklaver.com/
Also on:    postgresql.org/message-id/c1ed9580-1d13-8f9a-ece7-caa672a7b23f@aklaver.com

 · 

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: adrian.klaver@aklaver.com, paul.foerster@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: pg_upgrade Python version issue on openSUSE
  In-Reply-To: <c1ed9580-1d13-8f9a-ece7-caa672a7b23f@aklaver.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> <c1ed9580-1d13-8f9a-ece7-caa672a7b23f@aklaver.com>

* 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