Hi all, (Added Andrew in CC.) While working more on expanding the tests of pg_upgrade for cross-version checks, I have noticed that we don't expose a routine able to get back _pg_version from a node, which should remain a private field of Cluster.pm. We already do that for install_path, as of case added by 87076c4.
Any objections or comments about the addition of a routine to get the PostgreSQL::Version, as of the attached? Thanks, -- Michael
diff --git a/src/test/perl/PostgreSQL/Test/Cluster.pm b/src/test/perl/PostgreSQL/Test/Cluster.pm
index f842be1a72..c8c7bc5045 100644
--- a/src/test/perl/PostgreSQL/Test/Cluster.pm
+++ b/src/test/perl/PostgreSQL/Test/Cluster.pm
@@ -331,6 +331,20 @@ sub install_path
=pod
+=item $node->pg_version()
+
+The version number for the node, from PostgreSQL::Version.
+
+=cut
+
+sub pg_version
+{
+ my ($self) = @_;
+ return $self->{_pg_version};
+}
+
+=pod
+
=item $node->config_data($option)
Return a string holding configuration data from pg_config, with $option
signature.asc
Description: PGP signature
