From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Add pg_version() to PostgreSQL::Test::Cluster
Date: Fri, 20 May 2022 09:32:53 +0000
Message-ID: <E1nrz09-000FzZ-2p@gemulon.postgresql.org> (raw)
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
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(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: michael@paquier.xyz
Subject: Re: pgsql: Add pg_version() to PostgreSQL::Test::Cluster
In-Reply-To: <E1nrz09-000FzZ-2p@gemulon.postgresql.org>
References: <E1nrz09-000FzZ-2p@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox