projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43a8875
)
Adjust pg_upgrade crossversion test for adminpack
author
Daniel Gustafsson
Mon, 4 Mar 2024 13:37:45 +0000
(14:37 +0100)
committer
Daniel Gustafsson
Mon, 4 Mar 2024 13:37:45 +0000
(14:37 +0100)
Commit
cc09e6549f
which removed the adminpack extension failed to
instrument the crossversion pg_upgrade test to drop the extension
before attempting an upgrade to v17.
Discussion: https://postgr.es/m/
0CFB76D0
-0510-48B2-9916-
1199F93BC28C
@yesql.se
src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
b/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
index c0da0aaff8aa90fcd7c1e35b4805e9fa17e2901c..8dc1a65e3d6a5f2f82525069189d2b825ed8a1d2 100644
(file)
--- a/
src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
+++ b/
src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
@@
-106,6
+106,16
@@
sub adjust_database_contents
'drop extension if exists test_ext7');
}
+ # we removed the adminpack extension in v17
+ if ($old_version >= 12 && $old_version < 17)
+ {
+ _add_st($result, 'regression',
+ 'drop extension if exists adminpack');
+ _add_st($result, 'postgres',
+ 'drop database contrib_regression_adminpack');
+ delete($dbnames{'contrib_regression_adminpack'});
+ }
+
# we removed this test-support function in v17
if ($old_version >= 15 && $old_version < 17)
{