Fix crossversion test for unsupported versions
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 4 Mar 2024 14:09:59 +0000 (15:09 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 4 Mar 2024 14:09:59 +0000 (15:09 +0100)
The fix in be78006741 only accounted for supported versions of postgres
but the crossversion test use 11 as the source version, which is an EOL
version.  Fix by removing the lower bound in the adminpack cleanup.

Discussion: https://postgr.es/m/0CFB76D0-0510-48B2-9916-1199F93BC28C@yesql.se

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

index 8dc1a65e3d6a5f2f82525069189d2b825ed8a1d2..e4a4dcbd0d2d95269988400ca4bb375a15cb8b28 100644 (file)
@@ -107,7 +107,7 @@ sub adjust_database_contents
    }
 
    # we removed the adminpack extension in v17
-   if ($old_version >= 12 && $old_version < 17)
+   if ($old_version < 17)
    {
        _add_st($result, 'regression',
            'drop extension if exists adminpack');