[Bucardo-general] Conflict Handling: Newest Data Always Wins
bsa at lanl.gov
Tue Oct 9 21:03:36 UTC 2007
I was wondering if there was an easy way to to make a conflict
handler that causes "new data" to always be copied.
In other words, lets say we have database ONE and TWO. To start with,
both databases have the same data. Database ONE has a row updated.
Now the two databases are in conflict. The newer data in database ONE
should be copied to database TWO.
Database TWO has a row updated, the databases are in conflict. The
newer data from database TWO is copied to database ONE. Essentially
the newest data always wins.
I figure one way to do this would be add a timestamp column to all my
tables, and compare the two timestamps. I would like to, however,
stray away from altering my schema as much as possible.
Thanks for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Bucardo-general