]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Show version of nodes in output of TAP tests
authorMichael Paquier <michael@paquier.xyz>
Fri, 5 Dec 2025 00:21:18 +0000 (09:21 +0900)
committerMichael Paquier <michael@paquier.xyz>
Fri, 5 Dec 2025 00:21:18 +0000 (09:21 +0900)
commit9d4f6d17f579ff7ead7927aba9a7742b9031d2d7
treeb8c90ad2c3e165100797789d00575ad40e328a29
parentce2f575b7cf4ac9dbebed4df226b7de64c7d340d
Show version of nodes in output of TAP tests

This commit adds the version information of a node initialized by
Cluster.pm, that may vary depending on the install_path given by the
test.  The code was written so as the node information, that includes
the version number, was dumped before the version number was set.

This is particularly useful for the pg_upgrade TAP tests, that may mix
several versions for cross-version runs.  The TAP infrastructure also
allows mixing nodes with different versions, so this information can be
useful for out-of-core tests.

Backpatch down to v15, where Cluster.pm and the pg_upgrade TAP tests
have been introduced.

Author: Potapov Alexander <a.potapov@postgrespro.com>
Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
Discussion: https://postgr.es/m/e59bb-692c0a80-5-6f987180@170377126
Backpatch-through: 15
src/test/perl/PostgreSQL/Test/Cluster.pm