Postgres Array Comparison In Python The