By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
1 rows affected
1 rows affected
1 rows affected
1 rows affected
ERROR: conflicting key value violates exclusion constraint "no_different_animals_in_same_cage"
DETAIL: Key (cage, animal)=(1, lion) conflicts with existing key (cage, animal)=(1, zebra).