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 1nL9p8-00056G-Hg for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Feb 2022 20:25:50 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nL9p6-00081f-Up for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Feb 2022 20:25:48 +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 1nL9p5-00081V-Pk for pgsql-hackers@lists.postgresql.org; Fri, 18 Feb 2022 20:25:48 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nL9oy-0007lD-Tk for pgsql-hackers@postgresql.org; Fri, 18 Feb 2022 20:25:46 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id 4D0F43200D78; Fri, 18 Feb 2022 15:25:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Fri, 18 Feb 2022 15:25:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm3; bh=79JDRzyxckeTWMfQv4wFh/flpd38wmjzWEB+Gf uo07s=; b=2XadaYjnaRQykJLUw3HKQQiW3qjwitV61wFsA0v0OCIFsXqzlvbStB jhCytafftEZd/mJwZZxEr7mOfKUsh+kj/q9i5NC46IZuk7etomVDwKFccE8uGqtr Mi09mUd+ALIJ1lLphAvaJ6iafRDY9MinZ26SCF3Flx05aX5HZRCdaR7+7zKSEvQ0 wbhmZVMZP2Tk2znqSdMaCol6Fv0NRqnXIINgXqrBhzA97/ZLHH9XjvdGec6aIiZe NIvE1AushRyXZmhPbzsTap+BktgYBCdrO4oMl4focquAp7GySeWESDujxpK7ENXM /bOFJRsmSqq1lgknis+CRfPaJ0dJmpIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=79JDRzyxckeTWMfQv 4wFh/flpd38wmjzWEB+Gfuo07s=; b=ORCwy1hRUfUf16hA1znRXRDqNFWTKigzG /T06fwHeMT15y8xg0B4N9YaJqajKALZZjNvBZtwt9uZgn1kGdHNsTunlM29uiWDI 9bSlWCWYCTxg54XopeNzZJZXgvSUHc5ghhHUJnBD5m01idKJb9sNhCrpcU59ZKCI 6gTy37tvF6k66/1axS28wNojeNwPpglOVxp5Vh+rc63L8szEIqGfTdCQooQKL4fh YpgqafT76rvJXuC6Ix+PfyQGNG5aXF6cUrOcecLqW5AHYizPtxAWehau+6erPc1u TrUL01vKiToAMwQhOnIWOnqUUwCSKVRMI653mTxTjlziicaC45ogA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrkedtgddufeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpedukefhkeelueegveetheelffffjeegleeuudelfeefuedtleffueejfffh ueffudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 18 Feb 2022 15:25:34 -0500 (EST) Date: Fri, 18 Feb 2022 12:25:33 -0800 From: Andres Freund To: Joe Conway Cc: Peter Eisentraut , Tom Lane , pgsql-hackers@postgresql.org, Andrew Dunstan Subject: Re: Time to drop plpython2? Message-ID: <20220218202533.ekeeebfdmfdkut7x@alap3.anarazel.de> References: <20220215060131.vccqql2xelbujgtu@alap3.anarazel.de> <20220215214016.theaavgrleb72s5l@alap3.anarazel.de> <20220216195850.2ca4wnivsl3vbsib@alap3.anarazel.de> <20220217065208.2plo6mmx3ssu5fjd@alap3.anarazel.de> <20220217071446.tss2c3ozqpkl22iv@alap3.anarazel.de> <20220217180855.zdupcbamom6z5rxq@alap3.anarazel.de> <46af6cb5-2576-7758-667e-52811b25970b@joeconway.com> <20220218193716.a7ds5c5ynazzt6dm@alap3.anarazel.de> <42306949-4adc-a74c-2d44-925e9134c779@joeconway.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42306949-4adc-a74c-2d44-925e9134c779@joeconway.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2022-02-18 14:46:39 -0500, Joe Conway wrote: > On 2/18/22 14:37, Andres Freund wrote: > > > That seems to have worked. > > > > > > But the question is, is that the correct/recommended method? > > > > If python3 is in PATH, then you shouldn't need that part. > > Not quite -- python3 is definitely in the PATH: > > 8<------------------- > $ which python3 > /usr/bin/python3 > 8<------------------- > > And I gather that merely installing python3 RPMs on a RHEL-esque 7.X system > does not replace the python symlink: > > 8<------------------- > $ yum whatprovides /usr/bin/python > > python-2.7.5-89.el7.x86_64 : An interpreted, interactive, object-oriented > programming language > Repo : base > Matched from: > Filename : /usr/bin/python > > $ ll /usr/bin/python > lrwxrwxrwx. 1 root root 7 Mar 13 2021 /usr/bin/python -> python2 > 8<------------------- Yea, that all looks fine. What's the problem if you don't specify the PYTHON=python3? We try python3, python in that order by default, so it should pick up the same python3 you specify explicitly? Or maybe I'm just misunderstanding what you're asking... Greetings, Andres Freund