--- /usr/lib/postgresql/bin/DBMirror.pl 2006-06-27 20:39:34.000000000 +0200 +++ DBMirror.pl 2006-06-27 22:21:05.000000000 +0200 @@ -852,7 +852,7 @@ $matchString = $1; $value .= substr $matchString,0,length($matchString)-1; - if($matchString =~ m/(\'$)/s) { + if($matchString =~ m/(\'$)/s and (substr $dataField,length($matchString),1) ne "'") { # $1 runs to the end of the field value. $dataField = substr $dataField,length($matchString)+1; last;