Fix same_schema on 8.4
authorChristoph Berg <[email protected]>
Tue, 7 Jun 2016 13:14:51 +0000 (15:14 +0200)
committerChristoph Berg <[email protected]>
Tue, 7 Jun 2016 13:14:51 +0000 (15:14 +0200)
check_postgres.pl

index 456fbd5c2137f47f6f199c6edcb57a839e871858..017bed16a3400df3ba52fb4637fbd4ed17515821 100644 (file)
@@ -7471,6 +7471,9 @@ sub find_catalog_info {
             $SQL = $ci->{SQL2};
         }
     }
+    if ($type eq 'trigger' and $dbver->{major} <= 8.4) {
+        $SQL =~ s/t.tgconstrindid = 0 AND //;
+    }
 
     if (exists $ci->{exclude}) {
         if ('temp_schemas' eq $ci->{exclude}) {