title: Converting comma separated string to integer array in Postgres
body: <p>I am trying to convert the Comma separated string into an integer array (integer[]) to use in Where clause.</p>
  <p>I have tried cast, <code>::Int</code> which didn't work. Appreciate your input</p>
  <p>Example</p>
  <pre><code>Table A   |  Table B
  ID        |  Set_id
  2         |  14,16,17
  1         |  15,19,20
  3         |  21
  </code></pre>
  <p>My Query:</p>
  <pre><code>Select * 
  from Table a, table b 
  where a.id in b.set_id
  </code></pre>