From d6f2bacae4fff3e540c162115a0121388f9a9a5c Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 12 Nov 2013 00:15:23 -0500 Subject: [PATCH] Fixes for the new bucardo_delta_names table. --- bucardo.schema | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bucardo.schema b/bucardo.schema index c5353943e..4ba7662b8 100644 --- a/bucardo.schema +++ b/bucardo.schema @@ -1479,10 +1479,10 @@ IMMUTABLE AS $bcc$ BEGIN IF NEW.deltaname IS NULL THEN - NEW.deltaname = 'delta_' || bucardo.bucardo_tablename_maker(NEW.tablename); + NEW.deltaname = bucardo.bucardo_tablename_maker(NEW.tablename, 'delta_'); END IF; IF NEW.trackname IS NULL THEN - NEW.trackname = 'track_' || bucardo.bucardo_tablename_maker(NEW.tablename); + NEW.trackname = bucardo.bucardo_tablename_maker(NEW.tablename, 'track_'); END IF; RETURN NEW; END; @@ -2062,7 +2062,9 @@ SELECT 'Fixme'::TEXT; $SQL .= '(nspname = ? AND relname = ?) OR '; push @args => $remoteschema, $remotetable; - push @args2 => $syncname, "$remoteschema.$remotetable"; + if ($goat{$schema}{$table}{reltype} eq 'table') { + push @args2 => $syncname, "$remoteschema.$remotetable"; + } } ## end each table -- 2.39.5