| From: | Nathan Bossart <nathan(at)postgresql(dot)org> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Add test for pg_upgrade file transfer modes. |
| Date: | 2025-03-20 16:09:46 |
| Message-ID: | E1tvISn-0009f0-1u@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
Add test for pg_upgrade file transfer modes.
This new test checks all of pg_upgrade's file transfer modes. For
each mode, we verify that pg_upgrade either succeeds (and some test
objects successfully reach the new version) or fails with an error
that indicates the mode is not supported on the current platform.
For cross-version tests, we also check that pg_upgrade transfers
non-default tablespaces. (Tablespaces can't be tested on same
version upgrades because of the version-specific subdirectory
conflict, but we might be able to enable such tests once we teach
pg_upgrade how to handle in-place tablespaces.)
Suggested-by: Robert Haas <robertmhaas(at)gmail(dot)com>
Reviewed-by: Andres Freund <andres(at)anarazel(dot)de>
Discussion: https://postgr.es/m/Zyvop-LxLXBLrZil%40nathan
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/af0d4901c1c39b3e3425522834708e0992592bb8
Modified Files
--------------
src/bin/pg_upgrade/meson.build | 1 +
src/bin/pg_upgrade/t/006_transfer_modes.pl | 101 +++++++++++++++++++++++++++++
src/test/perl/PostgreSQL/Test/Cluster.pm | 19 ++++++
src/test/perl/PostgreSQL/Test/Utils.pm | 25 +++++++
4 files changed, 146 insertions(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Robert Haas | 2025-03-20 18:15:00 | pgsql: Add an additional hook for EXPLAIN option validation. |
| Previous Message | David G. Johnston | 2025-03-20 15:39:53 | Re: pgsql: Add vacuum_truncate configuration parameter. |