Add pg_version() to PostgreSQL::Test::Cluster
authorMichael Paquier <michael@paquier.xyz>
Fri, 20 May 2022 09:29:51 +0000 (18:29 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 20 May 2022 09:29:51 +0000 (18:29 +0900)
commitb39838889e76274b107935fa8e8951baf0e8b31b
tree337956ce85d7ef56351a3e4f3c2f1f76593aec1c
parenta5084a10fe60412036899a79b3aee76ba31a3579
Add pg_version() to PostgreSQL::Test::Cluster

_pg_version (version number based on PostgreSQL::Version) is a field
private to Cluster.pm but there was no helper routine to retrieve it
from a Cluster's node.  The same is done for install_path, for example,
and the version object becomes handy when writing tests that need
version-specific handling.

Reviewed-by: Andrew Dunstan, Daniel Gustafsson
Discussion: https://postgr.es/m/YoWfoJTc987tsxpV@paquier.xyz
src/test/perl/PostgreSQL/Test/Cluster.pm