On FK warnings, show the contraint name, otherwise we often have duplicated we cannot...
authorGreg Sabino Mullane <greg@endpoint.com>
Sat, 9 Nov 2013 19:31:24 +0000 (14:31 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Sat, 9 Nov 2013 19:31:24 +0000 (14:31 -0500)
Bucardo.pm

index 3a923125dda3589ae11959f7cfd6f9e171c27222..5bdc9415637c4f7953faa1f2721ff0c3f0d5ec52 100644 (file)
@@ -6426,14 +6426,14 @@ sub validate_sync {
             ## The referenced table is not being tracked in this sync
             if (! exists $s->{tableoid}{$oid2}) {
                 ## Nothing to do except report this problem and move on
-                $self->glog("Table $t1 references $t2, which is not part of this sync!", LOG_NORMAL);
+                $self->glog("Table $t1 references $t2($conname), which is not part of this sync!", LOG_NORMAL);
                 next;
             }
 
             ## A table referencing us is not being tracked in this sync
             if (! exists $s->{tableoid}{$oid1}) {
                 ## Nothing to do except report this problem and move on
-                $self->glog("Table $t2 is referenced by $t1, which is not part of this sync!", LOG_NORMAL);
+                $self->glog("Table $t2 is referenced by $t1($conname), which is not part of this sync!", LOG_NORMAL);
                 next;
             }