Don't populate bucardo_delta_names if no tables (e.g. sequence only sync)
authorGreg Sabino Mullane <greg@endpoint.com>
Thu, 14 Nov 2013 03:13:47 +0000 (22:13 -0500)
committerGreg Sabino Mullane <greg@endpoint.com>
Thu, 14 Nov 2013 03:13:47 +0000 (22:13 -0500)
bucardo.schema

index d644ec4d5131a20f97661bebdea557273ab13cd8..08624153aef45ca8c69769814a5be72f025887c1 100644 (file)
@@ -2081,7 +2081,7 @@ SELECT 'Fixme'::TEXT;
     }
 
     ## Populate the bucardo_delta_names table for this sync
-    if ($role eq 'source' and ! $is_fullcopy) {
+    if ($role eq 'source' and ! $is_fullcopy and @args2) {
         $SQL = 'DELETE FROM bucardo.bucardo_delta_names WHERE sync = ?';
         $sth = $dbh->prepare($SQL);
         $sth->execute($syncname);