add remove split language chart show hidden hide
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
1 rows affected
1 rows affected
2 rows affected
1 rows affected
a b
x y
xx yy
a b
A B
null null
ERROR:  conflicting key value violates exclusion constraint "ab_unique"
DETAIL:  Key ((ARRAY[hashtext(COALESCE(a, ''::text)), hashtext(COALESCE(b, ''::text))]))=({-1477818771,1955559433}) conflicts with existing key ((ARRAY[hashtext(COALESCE(a, ''::text)), hashtext(COALESCE(b, ''::text))]))=({-1477818771,-1477818771}).

ERROR:  conflicting key value violates exclusion constraint "ab_unique"
DETAIL:  Key ((ARRAY[hashtext(COALESCE(a, ''::text)), hashtext(COALESCE(b, ''::text))]))=({1074944137,32626184}) conflicts with existing key ((ARRAY[hashtext(COALESCE(a, ''::text)), hashtext(COALESCE(b, ''::text))]))=({1074944137,32626184}).

ERROR:  conflicting key value violates exclusion constraint "ab_unique"
DETAIL:  Key ((ARRAY[hashtext(COALESCE(a, ''::text)), hashtext(COALESCE(b, ''::text))]))=({32626184,-1477818771}) conflicts with existing key ((ARRAY[hashtext(COALESCE(a, ''::text)), hashtext(COALESCE(b, ''::text))]))=({1074944137,32626184}).

ERROR:  conflicting key value violates exclusion constraint "ab_unique"
DETAIL:  Key ((ARRAY[hashtext(COALESCE(a, ''::text)), hashtext(COALESCE(b, ''::text))]))=({-1477818771,1074944137}) conflicts with existing key ((ARRAY[hashtext(COALESCE(a, ''::text)), hashtext(COALESCE(b, ''::text))]))=({1074944137,32626184}).

ERROR:  new row for relation "tbl" violates check constraint "a_not_equal_b"
DETAIL:  Failing row contains (z, z).