From: Greg Sabino Mullane Date: Thu, 22 Apr 2010 13:48:31 +0000 (-0400) Subject: Show which table constraint is on when definitions differ. X-Git-Tag: 2.15.1~36 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js%3Cscript%20data-cfasync=?a=commitdiff_plain;h=c4e48e31afd4d95e0f06a2ed0d89bb7a1355d5cd;p=check_postgres.git Show which table constraint is on when definitions differ. --- diff --git a/check_postgres.pl b/check_postgres.pl index 105868962..9d4030f3b 100755 --- a/check_postgres.pl +++ b/check_postgres.pl @@ -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--;