I have an array of strings, and I\'d like to have a query containing an IN clause, like:
\"... WHERE t.name IN (\'foo\', \'bar\', \'baz\')..>\"
In PostgreSQL, you can't use IN to check whether a value is inside an array, you have to use the following PostgreSQL-specific syntax: where t.name = ANY (@tagsParam). See the section 8.15.5 in the PostgreSQL docs.
where t.name = ANY (@tagsParam)