Postgresql Array Where Clause Vs Having