[Bucardo-general] Please help on bucardo conflict resolution

Frank NJ. njiaga at gmail.com
Mon Jan 3 02:05:14 UTC 2011


>
> Hello There,
>
> You wrote the email below and i wonder if i could have those scripts...
>
> What i need to do is just to setup conflicts resolution on all the bales i want to sync,
>
> not one by one but just allow all of them to use latest in my swap sync.
> What command should i use?
>
> Regards,
> Frank
>
>
> =====================================================
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://mail.endcrypt.com/pipermail/bucardo-general/attachments/20110103/44299af0/attachment.html 


More information about the Bucardo-general mailing list