Skip to content

Commit be78006

Browse files
Adjust pg_upgrade crossversion test for adminpack
Commit cc09e65 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
1 parent 43a8875 commit be78006

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm

+10
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ sub adjust_database_contents
106106
'drop extension if exists test_ext7');
107107
}
108108

109+
# we removed the adminpack extension in v17
110+
if ($old_version >= 12 && $old_version < 17)
111+
{
112+
_add_st($result, 'regression',
113+
'drop extension if exists adminpack');
114+
_add_st($result, 'postgres',
115+
'drop database contrib_regression_adminpack');
116+
delete($dbnames{'contrib_regression_adminpack'});
117+
}
118+
109119
# we removed this test-support function in v17
110120
if ($old_version >= 15 && $old_version < 17)
111121
{

0 commit comments

Comments
 (0)