Show which table constraint is on when definitions differ.
authorGreg Sabino Mullane <greg@endpoint.com>
Thu, 22 Apr 2010 13:48:31 +0000 (09:48 -0400)
committerGreg Sabino Mullane <greg@endpoint.com>
Thu, 22 Apr 2010 13:48:31 +0000 (09:48 -0400)
check_postgres.pl

index 1058689628d475e7895032ef3c556c0862b2f6e8..9d4030f3b2b70abc106ac8a063bbed667a0b0e51 100755 (executable)
@@ -6177,7 +6177,7 @@ JOIN pg_namespace n ON (n.oid = pronamespace)
             for my $row (@{$fail{colconstraints}{defdiff}}) {
                 my ($name,$t1,$c1,$d1,$t2,$c2,$d2) = @$row;
                 if (! exists $doublec{$name}) {
-                    $db->{perf} .= qq{ Constraint "$name" on 1 differs from 2 ("$d1" vs. "$d2") };
+                    $db->{perf} .= qq{ Constraint "$name" (on $t1) on 1 differs from 2 ("$d1" vs. "$d2") };
                 }
                 else {
                     $failcount--;