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 1kMaVT-0007OW-4t for pgsql-general@arkaria.postgresql.org; Sun, 27 Sep 2020 17:30:39 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kMaVS-0002zt-3Y for pgsql-general@arkaria.postgresql.org; Sun, 27 Sep 2020 17:30:38 +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 1kMaVR-0002yQ-Rw for pgsql-general@lists.postgresql.org; Sun, 27 Sep 2020 17:30:37 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kMaVP-0001eo-L9 for pgsql-general@lists.postgresql.org; Sun, 27 Sep 2020 17:30:37 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 61E2134C; Sun, 27 Sep 2020 13:30:33 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Sun, 27 Sep 2020 13:30:33 -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=I 4TSVPCUsh/82f4d72M0CCdvA8jDZkklhHyMObWHvc0=; b=GksikXdreHBDNKnZt UXf18g9mKRzIQMb1LXCacxZOmVsdZd+Qo79HHNM1cmGjm1ycA0I8qRfA1/lZXbNM MYjTK4m4YstuSECY0QcLb75hinFmAipOTE0DBAhjH/th+Gn03p3iwpgZ+zZ6kaya 8smZ/RC/KMNO0bXC+EWj982ErqoQyGpvA3znUza/3h8J9wohL2Vm1UVzBKbXfFiU vmC5PwYv6n6LsUHqd3olAUxtgLyhJ1vZ0tZOhUl1H78VaHUuwS6w6FWXjyZC2aQY oHR4HNt+A5VCywnQJjVb4m15skJY0K3MNj9fCtY4sMVzzvOljmu6+V7iDsH+qcxc w9K8A== 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=I4TSVPCUsh/82f4d72M0CCdvA8jDZkklhHyMObWHv c0=; b=oc3sszElQ5BFkMHqNmHeeN9fy4peqoGn+8QGynblIJVFQ+BDn+rJE10wN t+Zpi+zc3lP5whkp+dwHtGFKxBDj0LufayZ4taEno+0KaPe65Ai21F+j9Aou3dpJ 6QD2hey6qah2QAXYYoG7F/4TWhDHQSn1ucNqDi5nT8JzYEPlFa5+Kl0SuwdXRqau sr6RkMv2bntJ2VZxoVUfEvxDVXS6DBosB5tZ49Tck4HTtpnMGk1ZQJGrompJDFfl mpsSOh2B1RQf38BYS5zIqiP2H7rXyyrygrueK3XXIJ5/wIIdwIsVws011VbczfwE +bYIDPY0dWVoqI64dxqcKUPvvghRQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrvdeggdduudehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeevveefveefueegffekkefhgeeiueffgfetueejvdfg hfeujeejhfekjeelgedtgeenucfkphepjeehrddujedvrdehrddvfedunecuvehluhhsth 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 E3A903280063; Sun, 27 Sep 2020 13:30:31 -0400 (EDT) Subject: Re: pg_upgrade Python version issue on openSUSE 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> From: Adrian Klaver Message-ID: Date: Sun, 27 Sep 2020 10:30:31 -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: <2EFE8070-928B-4444-9D05-FD56F30D7F79@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/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. > > Still, thanks for helping. > > Cheers, > Paul > -- Adrian Klaver adrian.klaver@aklaver.com