From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Allow for installation-aware instances of PostgresNode |
Date: | 2021-03-24 23:07:16 |
Message-ID: | E1lPCaq-0001pc-M3@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Allow for installation-aware instances of PostgresNode
Currently instances of PostgresNode find their Postgres executables in
the PATH of the caller. This modification allows for instances that know
the installation path they are supposed to use, and the module adjusts
the environment of methods that call Postgres executables appropriately.
This facility is activated by passing the installation path to the
constructor:
my $node = PostgresNode->get_new_node('mynode',
installation_path => '/path/to/installation');
This makes a number of things substantially easier, including
. testing third party modules
. testing different versions of postgres together
. testing different builds of postgres together
Discussion: https://postgr.es/m/a94c74f9-6b71-1957-7973-a734ea3cbef1@dunslane.net
Reviewed-By: Alvaro Herrera, Michael Paquier, Dagfinn Ilmari Mannsåker
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b34ca595abd697e716ce369ec1b58624bdd1c431
Modified Files
--------------
src/test/perl/PostgresNode.pm | 169 ++++++++++++++++++++++++++++++++++--------
1 file changed, 138 insertions(+), 31 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | tsunakawa.takay@fujitsu.com | 2021-03-25 01:25:28 | RE: pgsql: Add a new GUC and a reloption to enable inserts in parallel-mode |
Previous Message | Michael Paquier | 2021-03-24 22:44:02 | Re: pgsql: Move tablespace path re-creation from the makefiles to pg_regres |