Compare arrays for equality, ignoring order of elements

You can use contained by operator:

(array1 <@ array2 and array1 @> array2)

Leave a Comment