git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a6b7f5)
Fix cross-version upgrade tests after f0827b443.
2024年2月28日 22:47:25 +0000 (17:47 -0500)
2024年2月28日 22:47:25 +0000 (17:47 -0500)
Removing the get_columns_length() function from regress.so
means we have to drop it when testing upgrades from versions
that had it. Per buildfarm.

Discussion: https://postgr.es/m/2520881.1709159002@sss.pgh.pa.us


diff --git a/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm b/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
index a6222ae14c2753c905330ec61bcb7f8591610027..c0da0aaff8aa90fcd7c1e35b4805e9fa17e2901c 100644 (file)
--- a/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
+++ b/src/test/perl/PostgreSQL/Test/AdjustUpgrade.pm
@@ -106,6 +106,13 @@ sub adjust_database_contents
'drop extension if exists test_ext7');
}
+ # we removed this test-support function in v17
+ if ($old_version >= 15 && $old_version < 17)
+ {
+ _add_st($result, 'regression',
+ 'drop function get_columns_length(oid[])');
+ }
+
# stuff not supported from release 16
if ($old_version >= 12 && $old_version < 16)
{
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /