1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-23 03:21:12 +03:00

It looks like the problem was introduced when the "SET autocommit" and

"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
This commit is contained in:
Bruce Momjian
2002-12-05 21:04:14 +00:00
parent 24536e5b3f
commit 530bf204f0

View File

@ -33,7 +33,7 @@
# #
# #
############################################################################## ##############################################################################
# $Id: DBMirror.pl,v 1.3.2.1 2002/11/06 17:51:40 momjian Exp $ # $Id: DBMirror.pl,v 1.3.2.2 2002/12/05 21:04:14 momjian Exp $
# #
############################################################################## ##############################################################################
@ -128,7 +128,7 @@ sub Main() {
my $setQuery; my $setQuery;
$setQuery = "SET search_path = public"; $setQuery = "SET search_path = public";
$setResult = $masterConn->exec($setQuery); my $setResult = $masterConn->exec($setQuery);
if($setResult->resultStatus!=PGRES_COMMAND_OK) { if($setResult->resultStatus!=PGRES_COMMAND_OK) {
logErrorMessage($masterConn->errorMessage . "\n" . logErrorMessage($masterConn->errorMessage . "\n" .
$setQuery); $setQuery);
@ -137,7 +137,7 @@ sub Main() {
my $setQuery2; my $setQuery2;
$setQuery2 = "SET autocommit TO 'on'"; $setQuery2 = "SET autocommit TO 'on'";
$setResult2 = $masterConn->exec($setQuery2); my $setResult2 = $masterConn->exec($setQuery2);
if($setResult2->resultStatus!=PGRES_COMMAND_OK) { if($setResult2->resultStatus!=PGRES_COMMAND_OK) {
logErrorMessage($masterConn->errorMessage . "\n" . logErrorMessage($masterConn->errorMessage . "\n" .
$setQuery2); $setQuery2);