The following bug has been logged on the website:
Bug reference: 13289
Logged by: Anton
Email address: udtelco@gmail.com
PostgreSQL version: 9.3.2
Operating system: Solaris 11.2
Description:
select ('2' != any('{2,3}')) , ('2' = any('{2,3}'))
When != (or <>) operator is applied to any() , results are wrong. Thereby,
you have a situation where x = y AND x != y both evaluating as true.