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 1ngVQ0-0000yr-Di for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Apr 2022 17:44:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngVPz-0007tP-BL for pgsql-hackers@arkaria.postgresql.org; Mon, 18 Apr 2022 17:44:07 +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 1ngVPz-0007tG-1i for pgsql-hackers@lists.postgresql.org; Mon, 18 Apr 2022 17:44:07 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngVPt-0004yM-1T for pgsql-hackers@lists.postgresql.org; Mon, 18 Apr 2022 17:44:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 23IHhqer2361942; Mon, 18 Apr 2022 13:43:52 -0400 From: Tom Lane To: Andrew Dunstan cc: Noah Misch , Andres Freund , Michael Paquier , Erik Rijkers , Robert Haas , Alvaro Herrera , Mark Dilger , PostgreSQL Hackers Subject: Re: Postgres perl module namespace In-reply-to: References: <780f82bb-3a25-0c6f-154a-9f24b9324dba@dunslane.net> <615a96e7-6f8c-7bfb-216c-3ed0d619c04a@dunslane.net> <2bb5f5b2-5210-5c98-2be6-405283d6f817@xs4all.nl> <072a3088-7988-1c49-4d30-df47cf8e6415@dunslane.net> <20220418141530.nfxtkohefvwnzncl@alap3.anarazel.de> <20220418155224.GA1149931@rfd.leadboat.com> Comments: In-reply-to Andrew Dunstan message dated "Mon, 18 Apr 2022 13:28:40 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2361940.1650303832.1@sss.pgh.pa.us> Date: Mon, 18 Apr 2022 13:43:52 -0400 Message-ID: <2361941.1650303832@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andrew Dunstan writes: > On 2022-04-18 Mo 11:52, Noah Misch wrote: >> On Mon, Apr 18, 2022 at 07:15:30AM -0700, Andres Freund wrote: >>> I just, again, tried to backport a test as part of a bugfix. The >>> renaming between 14 and 15 makes that task almost comically harder. The >>> only way I see of dealing with that for the next 5 years is to just >>> never backpatch tests to < 15. Which seems like a bad outcome. > I'm not sure how often we do things like that. But I don't agree it's > impossibly hard, although I can see it might be a bit annoying. I think we back-patch test cases *all the time*. So I think Andres is quite right to be concerned about making that harder, although I'm not sure that his estimate of the conversion difficulty is accurate. I plan to keep a copy of Noah's script and see if applying that to the patch files alleviates the pain. In a few months we should have a better idea of whether that's sufficient, or we want to go to the work of back-patching the renaming. I doubt that just plopping the new Cluster.pm in alongside the old file could work --- wouldn't the two modules need to share state somehow? Another thing that ought to be on the table is back-patching 549ec201d (Replace Test::More plans with done_testing). Those test counts are an even huger pain for back-patching than the renaming, because the count is often different in each branch. regards, tom lane