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 1kMaWy-0007T4-T2 for pgsql-general@arkaria.postgresql.org; Sun, 27 Sep 2020 17:32: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 1kMaWx-00067i-PJ for pgsql-general@arkaria.postgresql.org; Sun, 27 Sep 2020 17:32:11 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMaWx-00067b-Hv for pgsql-general@lists.postgresql.org; Sun, 27 Sep 2020 17:32:11 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMaWq-0003Ab-KK for pgsql-general@lists.postgresql.org; Sun, 27 Sep 2020 17:32:10 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id AEB26411; Sun, 27 Sep 2020 13:32:02 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 27 Sep 2020 13:32:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:from:to:cc:references:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=Z iZO4HbInzDFQuV8BnTtVTB4aE5hMFgXD5cNlWFNy2I=; b=rPkiaxNKxJzUDXVxZ W+YdZZxk3ulj8DuoARsQNgO3gG7Oh2oVEi4Dt7QN0pBhaHHAhezwH8jr8FC4tGOC f0NjsvaZSbTzhqQhlrvKO506dl1h8Ep5tYP4s8UOZAxFPocoAp+c+A+DfME7OXlo qBCR4mGIetBiJLBSiPGmAKVwKKePDhWvcGd+jPQ8kPuSliCze2oTUbTX7nmQSDcb TzkFTZ5g8uQ7skFURCD9DAnnm82Og/0nIDK5aj2/TiANUnFE/DhAoIFEwEoSMM5Y gVe3bT1s9Q2cDZKTZZEF2E9i1C765/y4Xk430bm0QxDn20w9aDL9FskzrrKko/56 BQkkA== 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=ZiZO4HbInzDFQuV8BnTtVTB4aE5hMFgXD5cNlWFNy 2I=; b=GlzBr/8Y/9jURJNuqfh5b+Vv7rdM7DvNLtBJR6zHB0fKbgC00EpmTEh4/ 7madU2nkbYEmOSmy0bF5y8pVvxE2FJ6fYb0dRYrTqOZ4rACna8/mQE7h5XgBYKjU u7b9OlaO8JrhKuI+gQUy41sPQl7DXz21p48XTj6pKsQLLRqJEH391hzIlgQuU7Hp keClCdYTUhOH+MIXIrzXwOg6Zq9NDR0mJgHtG9r2TW20bPEmJBeq+JE0OFeosxFf mVOrIS6EzAFQnlcUjBmsaGYyz5JMdoE4J6A4W3r22iJB7uOzXqtpb1Tzi2XtCAgk WeimaXjQPMym49Kylm5zKIaQxO60Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdeggdduudeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffhvfhfkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpefhleekveehgeffgfekjeffhfdujeeukeeivefhudeg keelgfefgeevheefieeiteenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgr vhgvrhesrghklhgrvhgvrhdrtghomh 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 200A43280060; Sun, 27 Sep 2020 13:32:01 -0400 (EDT) Subject: Re: pg_upgrade Python version issue on openSUSE From: Adrian Klaver To: =?UTF-8?Q?Paul_F=c3=b6rster?= Cc: Tom Lane , 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> <2EFE8070-928B-4444-9D05-FD56F30D7F79@gmail.com> Message-ID: Date: Sun, 27 Sep 2020 10:32: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: 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/27/20 10:30 AM, Adrian Klaver wrote: > On 9/27/20 2:00 AM, Paul Förster wrote: >> Hi Adrian, >> >>> On 27. Sep, 2020, at 00:09, Adrian Klaver >>> wrote: >>> 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? >> >> I do know for sure that that never happened because the database >> clusters with this effect are my personal test databases and I never >> used Python. I did some tests with plperl and plperlu, though, but >> never python, because I don't "speak" python. >> >> What is possible is, those databases are clones of a Patroni cluster >> database (primary) I used to experiment with. I just copied them to >> new PGDATAs back then and changed PGPORT of course. I know, I could >> have done initdb and pg_dumpall but just copying the whole database >> cluster was the fast way to go, even more so as the PostgreSQL >> software was exactly the same. Just PGDATA and PGPORT changed for the >> clone. From what I know this is a perfectly legal way to do it as long >> as the source database cluster is properly shut down during the copy >> process. >> >> Maybe Patroni did it then implicitly? I'm not sure how Patroni works >> internally but I know that it is written in Python. Maybe it does >> install something in the database which I don't know and can't find? I >> tried searching for anything owned by "replicator" but can't find >> anything. >> >>> Are you able to go back and reconstruct them and then do \dL >>> (languages) and \dx (extensions)? >> >> The machine in question is my personal test box at home. I don't do >> regular backups there. If I break something I just reinstall it. So >> going back into the past with backups is not possible for me. The only >> thing that I kept running a long time now is the Patroni cluster >> because I have some data stored in it. But this is the only "history" >> there is. However, \dx and \dL do not show any Python extension or >> language on the Patroni cluster too, which is still 12.4. > > Does: > > SELECT >     lanname, proname, probin > FROM >     pg_proc > JOIN >     pg_language > ON >     pg_language.oid = pg_proc.prolang > WHERE >     pg_language.lanname='plpythonu' > AND >    probin IS NOT NULL; > > show anything? This would need to be repeated for each cluster in database. Really? Make that for each database in cluster! > >> >> Still, thanks for helping. >> >> Cheers, >> Paul >> > > -- Adrian Klaver adrian.klaver@aklaver.com