title: PostgreSQL query returning multiple rows based on id
body: <p>I am trying to figure out how I can select multiple rows from a table, based on the id column.
  Something like this:</p>
  
  <pre><code>select * from table where id=1 or id=2 or id=3
  </code></pre>
  
  <p>Should I loop through every id and perform a query for each iteration?</p>