Re: Postgres perl module namespace - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: Postgres perl module namespace
Date
Msg-id 9b9f5c7b-fccf-b2a5-a288-b413941bd766@dunslane.net
Whole thread Raw
In response to Re: Postgres perl module namespace  (Mark Dilger <mark.dilger@enterprisedb.com>)
Responses Re: Postgres perl module namespace  (Mark Dilger <mark.dilger@enterprisedb.com>)
Re: Postgres perl module namespace  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
On 8/10/21 9:37 PM, Mark Dilger wrote:
>
>> On Aug 10, 2021, at 7:10 AM, Andrew Dunstan <andrew@dunslane.net> wrote:
>>
>>     use PgTest::Utils;
>>     use PgTest::PostgresNode;
> Checking CPAN, it seems there are three older modules with names starting with "Postgres":
>
>     Postgres
>     Postgres::Handler
>     Postgres::Handler::HTML
>
> It would be confusing to combine official PostgreSQL modules with those third party ones, so perhaps we can claim the
PostgreSQLnamespace for official project modules.  How about:
 
>
>     PostgreSQL::Test::Cluster
>     PostgreSQL::Test::Lib
>     PostgreSQL::Test::Utils
>
> and then if we ever wanted to have official packages for non-test purposes, we could start another namespace under
PostgreSQL.
 
>

If we were publishing them on CPAN that would be reasonable. But we're
not, nor are we likely to, I believe. I'd rather not have to add two
level of directory hierarchy for this, and this also seems a bit
long-winded:


    my $node = PostgreSQL::Test::Cluster->new('nodename');


cheers


andrew


--
Andrew Dunstan
EDB: https://www.enterprisedb.com




pgsql-hackers by date:

Previous
From: Julien Rouhaud
Date:
Subject: Re: Postgres perl module namespace
Next
From: Mark Dilger
Date:
Subject: Re: Postgres perl module namespace