Re: multi-install PostgresNode - Mailing list pgsql-hackers

From Andrew Dunstan
Subject Re: multi-install PostgresNode
Date
Msg-id 5cad780c-92f7-d6ad-0999-a83db7c8bb0b@dunslane.net
Whole thread Raw
In response to Re: multi-install PostgresNode  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: multi-install PostgresNode  (Alvaro Herrera <alvherre@alvh.no-ip.org>)
List pgsql-hackers
On 1/13/21 7:56 AM, Andrew Dunstan wrote:
> On 1/11/21 9:34 AM, Peter Eisentraut wrote:
>> On 2020-12-20 18:09, Andrew Dunstan wrote:
>>> On 12/19/20 11:19 AM, Andrew Dunstan wrote:
>>>> This turns out to be remarkably short, with the use of a little eval
>>>> magic.
>>>>
>>>> Give the attached, this test program works just fine:
>>>>
>>>>      #!/bin/perl
>>>>      use PostgresNodePath;
>>>>      $ENV{PG_REGRESS} =
>>>>      '/home/andrew/pgl/vpath.12/src/test/regress/pg_regress';
>>>>      my $node = get_new_node('/home/andrew/pgl/inst.12.5711','blurfl');
>>>>      print $node->info;
>>>>      print $node->connstr(),"\n";
>>>>      $node->init();
>>>
>>> This time with a typo removed.
>> What is proposed the destination of this file?  Is it meant to be part
>> of a patch?  Is it meant to be installed?  Is it meant for the
>> buildfarm code?
>
> Core code, ideally. I will submit a patch.
>
>
> cheers
>

Here it is as a patch. I've added some docco in perl pod format, and
made it suitable for using on Windows and OSX as well as Linux/*BSD,
although I haven't tested on anything except Linux.


cheers


andrew


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


Attachment

pgsql-hackers by date:

Previous
From: Simon Riggs
Date:
Subject: Re: VACUUM (DISABLE_PAGE_SKIPPING on)
Next
From: Bharath Rupireddy
Date:
Subject: Re: Printing backtrace of postgres processes