title: Knex: Timeout acquiring a connection
body: <p>Since today, I get the following error when I try to locally connect to a postgres database (v 12) using knex.js.</p>
  <pre><code>Unhandled rejection TimeoutError: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
  </code></pre>
  <p>This happens on a project I've been working on for a year without any problems. Trying to isolate the issue, I created a new database with one table. When running the following lines of code, I get the same error:</p>
  <pre><code>const knex = require('knex');
  
  const db = knex({
    client: 'pg',
    connection: 'postgresql://postgres:postgres@localhost/a_test',
    pool: {
      min: 0,
      max: 10,
    },
  });
  
  db.from('test_table')
    .select(['id'])
    .then(r =&gt; {
      console.log(r);
    });
  
  </code></pre>
  <p>I have no clue what might cause this. A couple of weeks ago everything worked fine and I didn't change anything in the meantime. I run postgres locally with <a href="https://postgresapp.com/" rel="nofollow noreferrer">postgresapp</a> and when I connect to the database using <code>psql</code>, everything works fine. Any ideas where I could look to resolve this?</p>