postgres.git / summary / log / commit / refs

commit    87076c40834c2971f073f69be33a5f95ffa8f8a1
Author:   Andrew Dunstan <andrew@dunslane.net>
Date:     Thu Jul 29 09:58:08 2021 +0000
First released in: 15.0

    Add a getter function for a PostgresNode install_path
    
    Experience has shown this can be useful, and while not strictly necessary
    we should not normally expose the internals of PostgresNode objects.


src/test/perl/PostgresNode.pm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/test/perl/PostgresNode.pm b/src/test/perl/PostgresNode.pm index 5cfcbcf810b..8158ea5b2f5 100644 --- a/src/test/perl/PostgresNode.pm +++ b/src/test/perl/PostgresNode.pm @@ -302,6 +302,20 @@ sub backup_dir =pod +=item $node->install_path() + +The configured install path (if any) for the node. + +=cut + +sub install_path +{ + my ($self) = @_; + return $self->{_install_path}; +} + +=pod + =item $node->info() Return a string containing human-readable diagnostic information (paths, etc) [parent: 1e8d89f8800e]