aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2023-01-17 16:00:39 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2023-01-17 16:00:49 -0500
commit13764e9bf7f5591eb02a3e90667e55ae734ed164 (patch)
treed18133bc384a3a75c96dd6207e9d80dc642802ab /src
parent4ad0896bca92d98c7a419af6d30e59543ec9a398 (diff)
downloadpostgresql-13764e9bf7f5591eb02a3e90667e55ae734ed164.tar.gz
postgresql-13764e9bf7f5591eb02a3e90667e55ae734ed164.zip
AdjustUpgrade.pm should zap test_ext_cine, too.
test_extensions' test_ext_cine extension has the same upgrade hazard as test_ext7: the regression test leaves it in an updated state from which no downgrade path to default is provided. This causes the update_extensions.sql script helpfully provided by pg_upgrade to fail. So drop it in cross-version-upgrade testing. Not entirely sure how come I didn't hit this in testing yesterday; possibly I'd built the upgrade reference databases with testmodules-install-check disabled. Backpatch to v10 where this module was introduced.
Diffstat (limited to 'src')
-rw-r--r--src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm b/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
index b50222e0021..c0ace7c5815 100644
--- a/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
+++ b/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
@@ -88,12 +88,13 @@ sub adjust_database_contents
}
}
- # avoid version number issues with test_ext7
+ # avoid no-path-to-downgrade-extension-version issues
if ($dbnames{contrib_regression_test_extensions})
{
_add_st(
$result,
'contrib_regression_test_extensions',
+ 'drop extension if exists test_ext_cine',
'drop extension if exists test_ext7');
}