Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMINU-00022b-9L for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 22:09:12 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMINT-0000v8-5v for pgsql-general@arkaria.postgresql.org; Sat, 26 Sep 2020 22:09:11 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMINR-0000t7-FN for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 22:09:10 +0000 Received: from out1-smtp.messagingengine.com ([66.111.4.25]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMINM-0008Ur-QU for pgsql-general@lists.postgresql.org; Sat, 26 Sep 2020 22:09:08 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 4291C5C00A8; Sat, 26 Sep 2020 18:09:02 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 26 Sep 2020 18:09:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=5 FPSbeReUqFmaN/qGPH4z1bbHXgQS1/yaRgQRtrjg74=; b=iNGoFLlQuI4zJFY8d KH654cToo9orkeUD5onX8JZxOhu3tyDMaFEThTUV38d8IF1YwBFgndFE5gurqIQm bhbdA+ubPhM/KejoZUBWsBcmQ8GzG3ooCF0oRSUNl37K6sm0+rBB9tziqBhZR2c/ WqmzTT5Sp5gXM+WibECaAsMvHUYO/D3WvXJ4rd13ABXMyvi0EqE9xTPJ5KJ5RsfG OpDgtEh1qRkmzOgp840amcvX+qEKBrsy7sZoiqPliqhgaMrMLNYombMaE7JXmeqK llWoupSuBvygAgkwRUACdjyNFWag+VIdIBp97vLGyTfibrwzZWG0XfO7WdwovVNS WHo8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=5FPSbeReUqFmaN/qGPH4z1bbHXgQS1/yaRgQRtrjg 74=; b=pyWT2/o8BZrP93lnlgER4dAM8Qrv/kcCgym4OxQpxOEOjHgnPe+umLYW5 wcZKIBDPrbcNGe6o7K50K0C0qsGnVtheRWEFE9MwV02X05baxSB7/sczcznKSTa2 5NGBYLInJAAQ2+WmTzpoEk4aYxROzqpo4/G0NmsxFeohBjcuzvm8NxFR5O/98VZl brvRU9wP38GLbmr1D2StcHsZ1fRzHRunDaJNIbhMFmBfnJUipKrn6VRT5vFuA5Fq XxPf6rRQFkNALOkReBitxoAB3VfI8sVnJvQqkiQKG0REa9R5p9lutHsP5OUeF03T vI4D7bmUlbFl8/igpuaq4jpLCUWmg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdefucetufdoteggodetrfdotffvucfrrh hofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgenuceurghi lhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurh epuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhirghnucfm lhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtohhmqeenuc ggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfghfeujeej hfekjeelgedtgeenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhes rghklhgrvhgvrhdrtghomh X-ME-Proxy: Received: from [192.168.1.3] (75-172-5-231.tukw.qwest.net [75.172.5.231]) by mail.messagingengine.com (Postfix) with ESMTPA id 4DEAA306467E; Sat, 26 Sep 2020 18:09:01 -0400 (EDT) Subject: Re: pg_upgrade Python version issue on openSUSE To: =?UTF-8?Q?Paul_F=c3=b6rster?= , Tom Lane Cc: PostgreSQL General 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> From: Adrian Klaver Message-ID: Date: Sat, 26 Sep 2020 15:09:00 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <9D64B513-77D4-41D9-87E5-0727FAF96C84@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk 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