add remove split language show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
INSERT 0 1
INSERT 0 1
ERROR:  conflicting key value violates exclusion constraint "t_array_excl"
DETAIL:  Key ((ARRAY[id, id2]))=({4,3}) conflicts with existing key ((ARRAY[id, id2]))=({3,4}).
ERROR:  new row for relation "t" violates check constraint "t_check"
DETAIL:  Failing row contains (4, 4).
ERROR:  new row for relation "t" violates check constraint "t_check"
DETAIL:  Failing row contains (5, 5).
ERROR:  conflicting key value violates exclusion constraint "t_array_excl"
DETAIL:  Key ((ARRAY[id, id2]))=({7,8}) conflicts with existing key ((ARRAY[id, id2]))=({6,7}).
id id2
1 2
3 4
SELECT 2