title: PostgreSQL query from csv file
body: <p>What is the easiest way to query from .csv file ?</p>
  
  <p>Ex: I have a list of 1000 email addresses in <code>emails.csv</code> file.</p>
  
  <p>I want to query all users with emails that are in <code>emails.csv</code> file
  ex: </p>
  
  <pre><code>SELECT * 
  FROM users 
  WHERE email IN (emails.csv)
  </code></pre>
  
  <p>Is there a way to do like this something or I need to create a script. If some script is needed, can you please provide some example.</p>