[Bucardo-general] Custom conflic resolution
César Piñera
caifanesco at yahoo.com.mx
Mon Oct 19 15:17:43 UTC 2009
Thank you very much, i will give it a try and ill tell you how it goes.
Best regards,
César Piñera.
De: Lev Tannen [mailto:levtannen at gmail.com]
Enviado el: lunes, 19 de octubre de 2009 09:17 a.m.
Para: Cesar Piñera
Asunto: Re: [Bucardo-general] Custom conflic resolution
Hello Cesar,
I am novice myself. But I made custom code resolution for myself so have
some experience.
Custom conflict resolution is described in http://bucardo.org/bicardo.html.
Two paragraphs are of interest:
Custom code hooks and Bucardo Conflict Handling.
I have attached two files to this email: customcode_4.2.0.sql and
Add_To_Customcode_Map_201.sql
The first one contains an example a Perl code for custom conflict
resolution. When invoked it prints information about the table and row
where conflict occurd. This Perl code should be inserted into the customcode
table of the bucardo database. Actually the file customcode_4.2.0.sql
contains the whole sql statement for inserting the Perl rutine into the
customcode table so you only need to issue a statement like "./psql bucardo
bucardo < customcode_4.2.0.sql".
The second file contains examples of insert statemens for populating the
customcode_map table. These statements are database specific, so you will
need to modify them to fit your database. As you can see you have to have
one insert statement per table.
Note: The value 2 in the column "id" of the table customcode and in the
column "code" of the table customcode map is voluntary. It can be any but
the same in both tables.
Hope this will help.
Lev Tannen
2009/10/16 Cesar Piñera <caifanesco at yahoo.com.mx>
Hello,
Where can i find documentation about custom conflic resolution or some
examples? because im a little lost about this. I tried in bucardo.org but i
think its only mentioned, not explained.
Thanks in advanced.
Cesar Piñera
_____
¡Encuentra las mejores recetas
con Yahoo! Cocina!
http://mx.mujer.yahoo.com/cocina/
_______________________________________________
Bucardo-general mailing list
Bucardo-general at bucardo.org
https://mail.endcrypt.com/mailman/listinfo/bucardo-general
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mail.endcrypt.com/pipermail/bucardo-general/attachments/20091019/a74fd11f/attachment.html
More information about the Bucardo-general
mailing list