BDR Documentation | |||
---|---|---|---|
Prev | Up | Chapter 12. Functions | Next |
The following functions manage conflict handlers ("conflict triggers"):
Table 12-3. Conflict handler management functions
UDR/BDR | Function | Return Type | Description |
---|---|---|---|
BDR |
bdr.bdr_create_conflict_handler(ch_rel, ch_name, ch_proc, ch_type, ch_timeframe)
| void | Registers a conflict handler procedure named ch_name on table ch_rel to invoke the conflict handler procedure ch_proc when a conflict occurs within the interval ch_timeframe. See Multi-master conflicts for details. |
BDR | bdr.bdr_create_conflict_handler(ch_rel, ch_name, ch_proc, ch_type)
| void | The same as above, but always invoked irrespective of how different the two conflicting rows are in age, so takes no timeframe argument. |
BDR |
bdr.bdr_drop_conflict_handler(ch_rel, ch_name)
| void | Unregisters the conflict handler procedure named ch_name on table ch_rel. See Multi-master conflicts. |