title: Check same long condition on two columns
body: <p>I have two columns <code>X</code> and <code>Y</code> and a where statement as following:</p>
  
  <pre><code>WHERE (x=0 or x=1 or x=4 or x=6 or x=7 or x=12 or x=75) and 
        (y=0 or y=1 or y=4 or y=6 or y=7 or y=12 or y=75) 
  </code></pre>
  
  <p>since it's the same condition on both columns of the same table is there a way to short it?</p>
  
  <p>Something like <code>x and y are (0 or 1 or 4....)</code> - it's not PostgreSQL syntax but its clarify the question.</p>
  
  <p>Note: the numbers represent statuses, there is no mathematical logic behind this condition.</p>