[Bucardo-general] bucardo fails to replicate when the column name contains german umlauts

Greg Sabino Mullane greg at endpoint.com
Tue Sep 3 04:15:28 UTC 2013


On Mon, Sep 02, 2013 at 03:06:35PM +0200, Christian Ritter wrote:
>  BUCARDO_ID | id |   host_ip   | prüfsumme
> ------------+----+-------------+-----------
>  1          |  1 | 192.168.1.1 | foobar
> (1 row)

(Good debugging so far everyone!)

I would guess that the list of columns as returned from 
fetchall_hashref does not match the list stored in $g->{cols}. 
Certainly that would explain the behavior. I have not been able 
to duplicate the problem on 4.5.0. Could you try adding these 
lines to your Bucardo.pm and see what they spit out when you 
add a new row to one side?:

diff --git a/Bucardo.pm b/Bucardo.pm
index b303fcd..7c72f61 100644
--- a/Bucardo.pm
+++ b/Bucardo.pm
@@ -5741,6 +5741,9 @@ sub start_kid {
                     my (@srcrow, at tgtrow);
                     if ($action & 1 or $action & 4) { ## source to target / source to source
                         @srcrow = @{$info1->{$pkval}}{@{$g->{cols}}};
+                       warn Dumper $info1;
+                       warn Dumper $g->{cols};
+                       warn Dumper \@srcrow;
                     }
                     if ($action & 2 or $action & 8) { ## target to source / target to target
                         @tgtrow = @{$info2->{$pkval}}{@{$g->{cols}}};


-- 
Greg Sabino Mullane greg at endpoint.com
End Point Corporation
PGP Key: 0x14964AC8
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: Digital signature
URL: <https://mail.endcrypt.com/pipermail/bucardo-general/attachments/20130903/eea8b7ef/attachment.sig>


More information about the Bucardo-general mailing list