PostgreSQL - text Array contains value similar to
I'm trying to get rows where a column of type text[] contains a value similar to some user input. What I've thought and done so far is to use the 'ANY' and 'LIKE ' operator like this: select * from someTable where '%someInput%' LIKE ANY(someColum); But it doesn't work. The query returns the same values as that this query: select * from someTable where 'someInput' = ANY(someColum); I've got good a result using the unnest() function in a subquery but I need to query this in WHERE clause if possible. WHY doesn't the LIKE operator work with the ANY operator and I don't get any errors? I thought