13. Race Conditions and Slony-I

No, this has nothing to do with racial harmony or lack thereof; the Wikipedia describes it thus: "A race condition or race hazard is a flaw in a system or process whereby the output of the process is unexpectedly and critically dependent on the sequence or timing of other events. " In computing applications, race conditions arise most frequently in distributed or threaded applications when multiple parts of the application depend on some piece of shared state, and, if this state is not properly managed, confusion (error!) arises. More particularly, this usually involves situations where the state can change between the time it was checked and the time of use of the state.

Slony-I has run into a number of race conditions during its history: