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

Lines changed: 10 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy