Start with visible rows before UNIQUE checks any key.
rows first
Read the table
The pinned table has 6 rows.
rows=6
UNIQUE constraint examples are tiny finite table checks; SQL dialect completeness, index implementation, locking, optimizer behavior, product behavior, and performance claims are out of scope.
Keep row positions
The rule table later points violations back to source rows.