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 1ngxDb-0001kz-VF for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 23:25:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ngxDa-0007R1-R3 for pgsql-hackers@arkaria.postgresql.org; Tue, 19 Apr 2022 23:25:10 +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 1ngxDa-0007Qs-Hv for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 23:25:10 +0000 Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ngxDY-0001y3-1Q for pgsql-hackers@lists.postgresql.org; Tue, 19 Apr 2022 23:25:09 +0000 Received: (Authenticated sender: adsend@dunslane.net) by mail.gandi.net (Postfix) with ESMTPSA id 34A73E0003; Tue, 19 Apr 2022 23:24:59 +0000 (UTC) Message-ID: <6790e47f-aa12-e28b-e123-3fbe46f78513@dunslane.net> Date: Tue, 19 Apr 2022 19:24:58 -0400 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: Postgres perl module namespace Content-Language: en-US To: Michael Paquier Cc: Tom Lane , Noah Misch , Andres Freund , Erik Rijkers , Robert Haas , Alvaro Herrera , Mark Dilger , PostgreSQL Hackers References: <072a3088-7988-1c49-4d30-df47cf8e6415@dunslane.net> <20220418141530.nfxtkohefvwnzncl@alap3.anarazel.de> <20220418155224.GA1149931@rfd.leadboat.com> <2361941.1650303832@sss.pgh.pa.us> <02188900-ba1e-8c6c-c7dd-98294f39c23f@dunslane.net> <2364418.1650305263@sss.pgh.pa.us> <03909eb8-21ce-ca68-fea0-cd338e35ad59@dunslane.net> From: Andrew Dunstan In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-04-19 Tu 18:39, Michael Paquier wrote: > On Tue, Apr 19, 2022 at 04:06:28PM -0400, Andrew Dunstan wrote: >> Here's a version with a fixed third patch that corrects a file misnaming >> and fixes the export issue referred to above. Passes my testing so far. > Wow. That's really cool. You are combining the best of both worlds > here to ease backpatching, as far as I understand what you wrote. Thanks. > > +*generate_ascii_string = *TestLib::generate_ascii_string; > +*slurp_dir = *TestLib::slurp_dir; > +*slurp_file = *TestLib::slurp_file; > > I am not sure if it is possible and my perl-fu is limited in this > area, but could a failure be enforced when loading this path if a new > routine added in TestLib.pm is forgotten in this list? Not very easily that I'm aware of, but maybe some superior perl wizard will know better. cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com