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 1mMP1y-0003m2-2R for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Sep 2021 06:19:58 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mMP1x-0000Yu-0h for pgsql-hackers@arkaria.postgresql.org; Sat, 04 Sep 2021 06:19:57 +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 1mMP1w-0000Xs-I9 for pgsql-hackers@lists.postgresql.org; Sat, 04 Sep 2021 06:19:56 +0000 Received: from mail-qt1-x82b.google.com ([2607:f8b0:4864:20::82b]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mMP1u-0002Yy-5G for pgsql-hackers@lists.postgresql.org; Sat, 04 Sep 2021 06:19:55 +0000 Received: by mail-qt1-x82b.google.com with SMTP id s32so1086081qtc.12 for ; Fri, 03 Sep 2021 23:19:53 -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=cge+LVii10wejN+HzfiBkpmvBIzE/txE4rvZXoxOrvw=; b=Zowfh75mlIZ4pNBoeKAS49FRodN8yi01QNCeeQfv/YFp1T/RvpGmjakDDJtXyvJ277 niLru2f37dnceITUKWZwTDLmeEBkfhU5CgdlzUUDRHDjUdHtnnX638kVzG3z5H6yFAeo TeEyvNwBTA37qYutg3FlX19PUcSO9hb9kxyF8= 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=cge+LVii10wejN+HzfiBkpmvBIzE/txE4rvZXoxOrvw=; b=sHs7VoKHAyA/Xv4kRxY4K8xDd4JX7C8KuDXWqnAGBMU77eVFf2rti0u1pUScTm5AxL UCAFEOg/FfrwmqKYpDPjP9xuXi85hL9gWBONeKQBsrEX8kif2cY/C40hBPH3X1CX6LOw 3NpjnXZcBmHnCmRcAg6sxs2RxFhvLDSYEeB8wO5I4ZnF/zqJM4RW/b+6QA04MNRqd5uC +IHzwTW7zJhWvE9a6Zf88jQVEw2VjRDkBlq0yPPpn0/iGbYK1hjomOYEwkHaDuHzUrAP 0sfXjocirlOwPYP7hHepC8qzFoJIz3Ba881eaZAFnHddVmcPZ6Xjk19hx1guV1s5G9gJ Ta9A== X-Gm-Message-State: AOAM532DqwNncGeDFf3QEAc0UbBipDXXOcOVOrIDVmKKo2p2amrBEOAE 3CBQdHq82W2CwbHx16qyKeGVfQ== X-Google-Smtp-Source: ABdhPJxDz4TTFPzmWmE6p2IvbSN2TqQdUHGE76PuT/TJCjyRIuv2ACcgRcqGSMGg0rjUlSzw+VDwlw== X-Received: by 2002:a05:622a:356:: with SMTP id r22mr2276087qtw.161.1630736392809; Fri, 03 Sep 2021 23:19:52 -0700 (PDT) Received: from rfd.leadboat.com ([2600:1702:a20:5750::46]) by smtp.gmail.com with ESMTPSA id d12sm1090150qka.60.2021.09.03.23.19.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Sep 2021 23:19:52 -0700 (PDT) Date: Fri, 3 Sep 2021 23:19:49 -0700 From: Noah Misch To: Andrew Dunstan Cc: Robert Haas , Michael Paquier , Tom Lane , Alvaro Herrera , Mark Dilger , PostgreSQL Hackers Subject: Re: Postgres perl module namespace Message-ID: <20210904061949.GA2326091@rfd.leadboat.com> References: <202108111322.cj455y35dc2c@alvherre.pgsql> <3967644.1628688608@sss.pgh.pa.us> <7b565e73-4adc-ee9f-bc61-34817298978d@dunslane.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 Fri, Sep 03, 2021 at 03:34:24PM -0400, Andrew Dunstan wrote: > On 8/25/21 10:08 AM, Robert Haas wrote: > > On Wed, Aug 25, 2021 at 1:48 AM Michael Paquier wrote: > >> On Mon, Aug 23, 2021 at 03:39:15PM -0400, Robert Haas wrote: > >>> On Mon, Aug 23, 2021 at 3:03 PM Andrew Dunstan wrote: > >>>> OK, I count 3 in favor of changing to PgTest::Cluster, 1 against, > >>>> remainder don't care. > >>> I'd have gone with something starting with Postgres:: ... but I don't care much. > >> PgTest seems like a better choice to me, as "Postgres" could be used > >> for other purposes than a testing framework, and the argument that > >> multiple paths makes things annoying for hackers is sensible. > > I mean, it's a hierarchical namespace. The idea is you do > > Postgres::Test or Postgres:: and other people using the > > Postgres database can use other parts of it. But again, not really > > worth arguing about. > > I think I have come around to this POV. Here's a patch. The worst of it > is changes like this: > > - my $node2 = PostgresNode->new('replica'); > + my $node2 = Postgres::Test::Cluster->new('replica'); > ... > - TestLib::system_or_bail($tar, 'xf', $tblspc_tars[0], '-C', $repTsDir); > + Postgres::Test::Utils::system_or_bail($tar, 'xf', $tblspc_tars[0], '-C', $repTsDir); 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::.