I have a table with a column tags of type varchar [].
I would like to select all rows where the tags contains at least one of a set of values.
Something like this:
-- Not real code
SELECT *
FROM foo
WHERE non_empty(set_intersection(tags, '{ "apples", "bananas", "cherries" }'))
What is the syntax for this?
I know I can do a series of ORs but that seems less elegant.