title: PostgreSQL check if all surrogate IDs exist in table
body: <p>How do I check if an arbitrary array of user IDs, e.g., <code>'{1, 2, 3}'</code>, all exist in my <code>users</code> table, where <code>users.id</code> is a <code>bigserial</code> and <code>PRIMARY KEY</code>?</p>
  
  <p>UPDATE: Thank you for the different solutions. Which method is the most efficient if the <code>users</code> table has TONS of rows and the array of user IDs is relatively small?</p>