Check out example codes for "postgresql in vs any performance". It will help you in understanding the concepts better.

Code Example 1

Sice 8.2 will treat them equivalently 
In fact, it converts IN (...) to = ANY (ARRAY[...]) !)

Learn ReactJs, React Native from akashmittal.com