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 1mklH9-0007hb-D6 for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Nov 2021 10:56:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mklH8-0002MJ-BW for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Nov 2021 10:56:18 +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 1mklH8-0002GP-1L for pgsql-hackers@lists.postgresql.org; Wed, 10 Nov 2021 10:56:18 +0000 Received: from out5-smtp.messagingengine.com ([66.111.4.29]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mklH4-0003uD-8Q for pgsql-hackers@postgresql.org; Wed, 10 Nov 2021 10:56:16 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id CD8E35C0248; Wed, 10 Nov 2021 05:56:12 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 10 Nov 2021 05:56:12 -0500 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=fm1; bh=1M8afRAViQhvzMs0zuLRiVgBCGKAazoUPfwbVkIEo uQ=; b=LiC4CGYmZ8KM0n7ES5OrHqmWJwKuvMjAciyda02wFx00oqJkEwPDMlbLQ aS5ID5LZgWJMM0YkljM31UfOYvNse3vtH6qyp3XqEGMw7FcM1IVIK/LUZJDVpO6b MkYN/Jtb/mSHgPru3V8hkgtv2bpf0qaKTBKM0B/4ZZkdTnP2c+rO88fue/oAAHt8 Gw62npDKopfu9juZ/M0c9JxhH7PQ9Sf/lNuZDcg3XEAaYBv2Cm18V+m6oOMpIv50 NGQJHyhywjWvLGCcU9G0Twn4DG9qP6T3vxUluojr0aJylQzCT8y/LPZPKyoIpzH4 8dOTAw79bQga74ovdGnBk5ano2kmw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrudejgddvudcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfhfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvghtvghr ucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvghnthgvrh hprhhishgvuggsrdgtohhmqeenucggtffrrghtthgvrhhnpeefjeegheetuefhveevudel ueeftdejteeiffetvdduhfdtieefgfeutedtveeggfenucevlhhushhtvghrufhiiigvpe dtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthes vghnthgvrhhprhhishgvuggsrdgtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 10 Nov 2021 05:56:11 -0500 (EST) Message-ID: <85eb62cd-76f3-d01f-79ef-144173c16edc@enterprisedb.com> Date: Wed, 10 Nov 2021 11:56:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.0 Subject: Re: Time to drop plpython2? Content-Language: en-US To: Andres Freund Cc: pgsql-hackers@postgresql.org References: <20211031184548.g4sxfe47n2kyi55r@alap3.anarazel.de> <08a65981-7fec-1b9b-4061-6e3086c05914@enterprisedb.com> <3fc1211d-960b-4b2f-3e96-a6099db847fc@enterprisedb.com> <20211104195443.dystyijvufveikcp@alap3.anarazel.de> From: Peter Eisentraut In-Reply-To: <20211104195443.dystyijvufveikcp@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 04.11.21 20:54, Andres Freund wrote: >> Finally, morally related, there is some Python 2/3 compat code in >> contrib/unaccent/generate_unaccent_rules.py that could be removed. Also, >> arguably, change the shebang line in that script. > > Hm. So far the python used for plpython and python for code generation etc is > independent. I don't know if plpython actually can be cross-compiled, but if > so, they'd have to be independent. Otherwise I'd say we should just invoke > contrib/unaccent/generate_unaccent_rules.py with a python chosen by > configure/meson, rather than relying on a shebang that can't be adjusted > without modifying source code. We don't rely on the shebang for running this (see Makefile). I just see some trend of people changing shebang lines as a sort of signal, "this script has abandoned Python 2". It's not very important. > Another thing I wondered about is what we want to do with the extension > names. Do we want to leave it named plpython3u? Do we want to have a plpython > that depends on plpython3u? I would tend to mirror what the Python community does with /usr/bin/python. Right now, most people are removing /usr/bin/python and just provide /usr/bin/python3. This would be analogous to what your patch does. Some time in the future, they may add /usr/bin/python back, and then we could do the same, meaning add a plpythonu that depends on plpython3u.