If I have a table with a column with an array of strings, how can I create a constraint to ensure that the arrays in all rows are disjoint sets (ie. no string is present in the array in more than one row)?
This would be for postgres, need a gin index, and using the &&
array operator.