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 1mNolB-0005KZ-53 for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Sep 2021 04:00:29 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mNol9-0007cW-TR for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Sep 2021 04:00:27 +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 1mNol9-0007cN-E4 for pgsql-hackers@lists.postgresql.org; Wed, 08 Sep 2021 04:00:27 +0000 Received: from mail-qk1-x72e.google.com ([2607:f8b0:4864:20::72e]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mNol6-0001Kt-7a for pgsql-hackers@lists.postgresql.org; Wed, 08 Sep 2021 04:00:26 +0000 Received: by mail-qk1-x72e.google.com with SMTP id y144so1175525qkb.6 for ; Tue, 07 Sep 2021 21:00:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=leadboat.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=m5Qk/9Bn5fl9Yvs81am7Nhg96Z1yTIT8sozIzb1bJLs=; b=ASniHPm+U1AD6vzu7setYwYpcYR4GSPCUbcJU7wn8tD+QrbA+mulZkWI7bYIXSUtkg 0PMu8uqEzyBwH5JYTwvTKVeVbFCQ5o4ZdrorDrNaeTnOWLsX/M63NF1/Rd7v7p+rN2tL eeoou/YkA0/r0GbOtI1k1lClB6K0LAaIvrUXE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=m5Qk/9Bn5fl9Yvs81am7Nhg96Z1yTIT8sozIzb1bJLs=; b=LhDg6WlG0kPdPbh2gDrEYUr/fhNU4qFn5k8qdIA6vqzlUJdf2ZwXbZdRvbssPVQ7xl LzcOpEXcsa/1gVHltdEZA3FI7n/WWkouaxi1EHayiPa5b89KU8T8iW00pObJp8q3F03Q v4rEKyZ6dUUttg/kphTcaJ4a8ank45gBrHmTybqmIA6zCYxees3GIEVYK4MGPMZXFrqi +q7/fXD8ZDCEvEvkv8qyY0S7YwmnnQ6nxKSaw9o+3Eu8naChv/I4eki/Sk0haZM6wTXa HCKQZcVkC/CQZLzCuMjGiM7/y3dVR9UYy6yniosOHEDXoxoENWTWHPSyGSwUhmFVcQjF zs6w== X-Gm-Message-State: AOAM53185lAHtG2Xw7ym1suWMGyWaizcElyAUr/NFG24hXRfuSjOFKjw OrE31PEfcL/SbK85dDACmy/F/w== X-Google-Smtp-Source: ABdhPJwQcbKHnzKZFJ8S/di6ijAMR4EwbJNXDWLSLO5VS4OM8N+XydKkT4Bn895qwFcPEnXyNk7Vhg== X-Received: by 2002:a37:a603:: with SMTP id p3mr1597431qke.441.1631073622164; Tue, 07 Sep 2021 21:00:22 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::46]) by smtp.gmail.com with ESMTPSA id d12sm871435qka.60.2021.09.07.21.00.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Sep 2021 21:00:22 -0700 (PDT) Date: Tue, 7 Sep 2021 21:00:11 -0700 From: Noah Misch To: Andrew Dunstan Cc: Michael Paquier , Robert Haas , Tom Lane , Alvaro Herrera , Mark Dilger , PostgreSQL Hackers Subject: Re: Postgres perl module namespace Message-ID: <20210908040011.GA2476997@rfd.leadboat.com> References: <3967644.1628688608@sss.pgh.pa.us> <7b565e73-4adc-ee9f-bc61-34817298978d@dunslane.net> <20210904061949.GA2326091@rfd.leadboat.com> <780f82bb-3a25-0c6f-154a-9f24b9324dba@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <780f82bb-3a25-0c6f-154a-9f24b9324dba@dunslane.net> User-Agent: Mutt/1.5.24 (2015-08-30) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 07, 2021 at 07:43:47AM -0400, Andrew Dunstan wrote: > On 9/6/21 1:08 AM, Michael Paquier wrote: > > On Sat, Sep 04, 2021 at 09:58:08AM -0400, Andrew Dunstan wrote: > >> On 9/4/21 2:19 AM, Noah Misch wrote: > >>> plperl uses PostgreSQL:: as the first component of its Perl module namespace. > >>> We shouldn't use both PostgreSQL:: and Postgres:: in the same source tree, so > >>> this change should not use Postgres::. > >> Good point. Here's the same thing using PostgreSQL::Test > > A minor point: this introduces PostgreSQL::Test::PostgresVersion. > > Could be this stripped down to PostgreSQL::Test::Version instead? > > That name isn't very clear - what is it the version of, PostgreSQL or > the test? Fair. > There's nothing very test-specific about this module - it simply > encapsulates a Postgres version string. So maybe it should just be > PostgreSQL::Version. Could be fine, but that name could be useful as a CPAN module. These modules don't belong on CPAN, so I'd keep PostgreSQL::Test::PostgresVersion. There's only one reference in the tree, so optimizing that particular name is less exciting. (I wondered about using PGXS:: as the namespace for all these modules, since it's short and "pgxs" is the closest thing to a name for the PostgreSQL build system. Overall, I didn't convince myself about it being an improvement.)