In PostgreSQL, we can use the ANY()
construct to perform searches against arrays. It returns a Boolean result, and so we can incorporate this into our searches to return just those rows that yield true or false, as the case may be.
There’s also a SOME()
construct, which is a synonym for ANY()
.