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 1nL9DM-0003b2-80 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Feb 2022 19:46:48 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nL9DK-0002HF-B5 for pgsql-hackers@arkaria.postgresql.org; Fri, 18 Feb 2022 19:46:46 +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 1nL9DK-0002H6-1d for pgsql-hackers@lists.postgresql.org; Fri, 18 Feb 2022 19:46:46 +0000 Received: from mail-vs1-xe36.google.com ([2607:f8b0:4864:20::e36]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1nL9DG-00019w-VL for pgsql-hackers@postgresql.org; Fri, 18 Feb 2022 19:46:45 +0000 Received: by mail-vs1-xe36.google.com with SMTP id w4so11164972vsq.1 for ; Fri, 18 Feb 2022 11:46:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joeconway.com; s=google; h=message-id:date:mime-version:user-agent:content-language:to:cc :references:from:subject:in-reply-to:content-transfer-encoding; bh=hKTSqrfIltihTvP4KmZm/3vB2b9eJIqH4DmLkhMWctc=; b=EOr9tVteCjRsxoMQUZBa21GyJzF6MuSXB9CWbKIY7Goaa7EjyvmAZGlqn2ti913Vg4 /rgBtSPwoypGHk8G85nK0NHLPyj9puRnKZk33bu+3XzuaM5k2y230Ojoe5Fk6OunMdJf UgyjUqhkJ2EQPw9svjZhX++S7C+G0cGrQ8qATCuILqTzsC/psOiy59dDXczFX86JKNpM xyGE0Kdu8Gh2uKueg/GYl5oF8bHwTYcrcx9vpBW5UZsAIzPqA9YsUjeok2F+mhxeK0X/ Qj62fb30tRicLHGcPlF8sUWc8ENkPWOqWyAzE4fypzaBc8jjdvKgoZXaqGUOraLL2lV7 LnZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent :content-language:to:cc:references:from:subject:in-reply-to :content-transfer-encoding; bh=hKTSqrfIltihTvP4KmZm/3vB2b9eJIqH4DmLkhMWctc=; b=BF+JhOw7ibv0YD/3dZB6wKvKygcfvAAmbKYS5TX9HP5kadczOs/GboxZ+r1OITScs8 TD8GsAWxF4S61TtLkrQ2RNXYl6HMQ18b2055wL2gwmAjvf8eJ0ZPKFofhLg6Luc3ygNW c687ELippr8iIBsGVZwCBiRGOOZjK5zFQgEUmQsfaYxb7Hi4xKUDTBdLvaJkIPqaFJ7q wRwx/46AkD/t0j5CfKyxffZhwHgOUiJpAE8SDPF7MQSRbvCpuPpMWK+o6ufcqGjI8v87 E14gBNT9NdLTCZpWbPtVwCUJYg/92dDqk8sFcEdZsZcbVbAgXFq/EoY3b/Q1sRMCrPpy Ys0w== X-Gm-Message-State: AOAM5316e+hwPSgjlfbByDJJHEVoNYkKWTSpYZIqMBuvHTDbsUuCuUXv qfyJpNSL6tkADSGlfBwD7hwkhQ== X-Google-Smtp-Source: ABdhPJx3sqwShntD+O7/LHteC3seA4lnZeWh3q1poQSV33JresxTYPmXOplnLf9qvE8vDzfhKkWiGQ== X-Received: by 2002:a05:6102:3e8f:b0:31b:74e8:88bd with SMTP id m15-20020a0561023e8f00b0031b74e888bdmr3945773vsv.52.1645213600644; Fri, 18 Feb 2022 11:46:40 -0800 (PST) Received: from [192.168.4.41] (072-017-018-098.res.spectrum.com. [72.17.18.98]) by smtp.gmail.com with ESMTPSA id t80sm4942380vkt.26.2022.02.18.11.46.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 18 Feb 2022 11:46:40 -0800 (PST) Message-ID: <42306949-4adc-a74c-2d44-925e9134c779@joeconway.com> Date: Fri, 18 Feb 2022 14:46:39 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US To: Andres Freund Cc: Peter Eisentraut , Tom Lane , pgsql-hackers@postgresql.org, Andrew Dunstan References: <43C0836C-AD2F-4433-AFD6-3EA0FDACD745@anarazel.de> <2983839.1644897457@sss.pgh.pa.us> <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> From: Joe Conway Subject: Re: Time to drop plpython2? In-Reply-To: <20220218193716.a7ds5c5ynazzt6dm@alap3.anarazel.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2/18/22 14:37, Andres Freund wrote: > Hi, > > On 2022-02-18 14:19:49 -0500, Joe Conway wrote: >> On 2/17/22 13:08, Andres Freund wrote: >> > On 2022-02-16 23:14:46 -0800, Andres Freund wrote: >> > > > Done. Curious how red the BF will turn out to be. Let's hope it's not >> > > > too bad. >> >> > > - rhinoceros >> > >> > Joe replied that he is afk, looking into it tomorrow. >> >> I installed python3 packages (initially forgetting the devel package -- >> d'oh!) and changed build-farm.conf thusly: >> >> 8<------------------- >> *************** >> *** 185,190 **** >> --- 185,193 ---- >> >> build_env => { >> >> + # specify python 3 >> + PYTHON => 'python3', >> + >> # use a dedicated cache for the build farm. this should give >> us >> # very high hit rates and slightly faster cache searching. >> # >> 8<------------------- >> >> 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<------------------- Joe -- Crunchy Data - http://crunchydata.com PostgreSQL Support for Secure Enterprises Consulting, Training, & Open Source Development