It looks like the problem was introduced when the "SET autocommit" and
authorBruce Momjian <[email protected]>
Thu, 5 Dec 2002 21:04:14 +0000 (21:04 +0000)
committerBruce Momjian <[email protected]>
Thu, 5 Dec 2002 21:04:14 +0000 (21:04 +0000)
"SET search_path"  commands were added to the beginning of the script.

The attatched patch should fix the problem. It probably should be
applied  against the 7.3 and 7.4 branches.

Steven Singer

contrib/dbmirror/DBMirror.pl

index 23238ab3bbeec39121f3140510e3f4f2e9b5cdc3..7de5c12dd47fb928235b67aa17a3fd74bb487b92 100755 (executable)
@@ -128,7 +128,7 @@ sub Main() {
     
   my $setQuery;
   $setQuery = "SET search_path = public";
-  $setResult = $masterConn->exec($setQuery);
+  my $setResult = $masterConn->exec($setQuery);
   if($setResult->resultStatus!=PGRES_COMMAND_OK) { 
     logErrorMessage($masterConn->errorMessage . "\n" . 
                    $setQuery);
@@ -137,7 +137,7 @@ sub Main() {
     
   my $setQuery2;
   $setQuery2 = "SET autocommit TO 'on'";
-  $setResult2 = $masterConn->exec($setQuery2);
+  my $setResult2 = $masterConn->exec($setQuery2);
   if($setResult2->resultStatus!=PGRES_COMMAND_OK) { 
     logErrorMessage($masterConn->errorMessage . "\n" . 
                    $setQuery2);