concurrencydatabases
A row-level check can miss a cross-row rule
Anonymous
Suppose a rule requires at least one of two workers to remain active. Two concurrent transactions can each read both as active, then deactivate a different row. Each check passes alone, but together they break the rule. Use serializable isolation or explicit coordination for this invariant.
0