title: How to define the schema explicitly for a node-postgres pool
body: <p>I am using a nodepostgres pool to query a database which has a custom schema.</p>
  
  <p>There are 2 ways to handle this:</p>
  
  <ol>
  <li>All the queries need to be specialized with the schema like <code>customSchema.tablename</code>.</li>
  <li>Make this query before other queries:<br>
  <code>pool.query(SET search_path TO ${params["db_schema"]}, public</code>);</li>
  </ol>
  
  <p>I have two problems with these approaches:</p>
  
  <ol>
  <li>I need to selectively connect to two DBs. One DB has a custom schema, and the other does not. So I cannot use method #1.</li>
  <li>When using a query approach to set the seach_path, it works for a few queries, and then gives error saying it cannot find the table. I believe this is because the pool connections timeout or something similar.</li>
  </ol>
  
  <p>So, is there a way I can define the schema is a more consistent way?</p>