Memory cards
A deadlock is a cycle in the wait-for graph
confidence: mediumupdated: 2026-11-25status: activedatabasedeadlockretry
Claim#
The detector finds a cycle, picks a victim and aborts it. The client must retry the whole transaction.
Test#
Create a two-session cycle. Check the victim and the error code.
Proof#
A clear deadlock error and a successful retry.
Failure modes#
A retry inside the same transaction may repeat the partial work.