Re: Postgres perl module namespace

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Michael Paquier <michael(at)paquier(dot)xyz>
Cc: Noah Misch <noah(at)leadboat(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Mark Dilger <mark(dot)dilger(at)enterprisedb(dot)com>, PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org>
Subject: Re: Postgres perl module namespace
Date: 2021-10-19 18:54:58
Message-ID: 615a96e7-6f8c-7bfb-216c-3ed0d619c04a@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On 9/7/21 7:43 AM, 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?
>
> There's nothing very test-specific about this module - it simply
> encapsulates a Postgres version string. So maybe it should just be
> PostgreSQL::Version.
>
>

Discussion has gone quiet and the tree is now relatively quiet, so now
seems like a good time to do this. See attached patches.

cheers

andrew

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

Attachment Content-Type Size
0001-move-perl-test-modules-to-PostgreSQL-Test-namespace.patch text/x-patch 167.5 KB
0002-move-PostgreSQL-Test-PostgresVersion-up-in-the-names.patch text/x-patch 3.7 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2021-10-19 19:13:04 ThisTimeLineID can be used uninitialized
Previous Message Stephen Frost 2021-10-19 18:54:56 Re: XTS cipher mode for cluster file encryption