From 0ab3e6f3d0e2f0eba9c8839cc3cb24b42a9da7e0 Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Thu, 6 Aug 2015 15:17:49 -0400 Subject: [PATCH] Tabs to spaces --- bucardo | 4 ++-- bucardo.schema | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bucardo b/bucardo index fda062d3f..fd807ca3c 100755 --- a/bucardo +++ b/bucardo @@ -5079,10 +5079,10 @@ AND nspname !~ '^pg_' if (!$row->{relhaspkey}) { ## Allow if we have a unique index on this table $SQL = q{SELECT 1 FROM pg_index WHERE indisunique AND indrelid = } - . q{(SELECT c.oid FROM pg_class c JOIN pg_namespace n ON (n.oid = c.relnamespace) WHERE n.nspname=? AND c.relname=?)}; + . q{(SELECT c.oid FROM pg_class c JOIN pg_namespace n ON (n.oid = c.relnamespace) WHERE n.nspname=? AND c.relname=?)}; my $sthunique = $rdbh->prepare_cached($SQL); $count = $sthunique->execute($row->{nspname},$row->{relname}); - $sthunique->finish(); + $sthunique->finish(); next if $count < 1; } } diff --git a/bucardo.schema b/bucardo.schema index 1c3cc13bc..195eb8ac7 100644 --- a/bucardo.schema +++ b/bucardo.schema @@ -2507,15 +2507,15 @@ FOR EACH ROW EXECUTE PROCEDURE bucardo.bucardo_delta_names_helper(); ## Add in the autokick triggers as needed ## Skip if autokick is false - if ($info->{autokick} eq 'f') { + if ($info->{autokick} eq 'f') { if (exists $btriggerinfo{$schema}{$table}{$kickfunc}) { $SQL = qq{DROP TRIGGER "$kickfunc" ON $safeschema.$safetable}; - ## This is important enough that we want to be verbose about it: - warn "Dropped trigger $kickfunc from table $safeschema.$safetable\n"; + ## This is important enough that we want to be verbose about it: + warn "Dropped trigger $kickfunc from table $safeschema.$safetable\n"; $run_sql->($SQL,$dbh); delete $btriggerinfo{$schema}{$table}{$kickfunc}; } - next TABLE; + next TABLE; } if (! exists $btriggerinfo{$schema}{$table}{$kickfunc}) { my $ttrig = $dbh->{pg_server_version} >= 80400 ? ' OR TRUNCATE' : ''; -- 2.39.5