pgsql: Add pg_version() to PostgreSQL::Test::Cluster

Started by Michael Paquierabout 4 years ago1 messagescomitters
Jump to latest
#1Michael Paquier
michael@paquier.xyz

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: /messages/by-id/YoWfoJTc987tsxpV@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/b39838889e76274b107935fa8e8951baf0e8b31b

Modified Files
--------------
src/test/perl/PostgreSQL/Test/Cluster.pm | 14 ++++++++++++++
1 file changed, 14 insertions(+)