title: Problems making a node.js app connect to PostgreSQL, using node-orm (under osx 10.6.8)
body: <p>I am trying to make a small nodejs app run under osx (10.6.8), and connect to my localhost Postgres database. I am using node-orm (https://github.com/dresende/node-orm2) as well as the Postgres bindings (https://github.com/brianc/node-postgres).</p>
  
  <p>For some reason, when I use <code>orm.connect</code> and give it the connection url as a string, it fails with: </p>
  
  <pre><code>Error: getaddrinfo ENOENT
      at errnoException (dns.js:31:11)
      at Object.onanswer [as oncomplete] (dns.js:123:16)
  </code></pre>
  
  <p>If I change localhost with 127.0.0.1. it also dies with a timeout exception.</p>
  
  <p>Using the vanilla postgress bindings to connect to the DB, using the same connection string is successful, and I even managed to get a few test queries running, got results, etc.</p>
  
  <p>I tried to set up the DB client manually using the vanilla postgress api, an pass it on to orm using <code>orm.use</code>. This manages to connect successfully to the DB, but every time I try to execute a query, nothing happens. It does not generate an error, but sinply gets stuck in the QueryQueue and doe not call the success callback. I checked the DB logs, and it seems that it has not detected the query either.</p>
  
  <p>What do I do? I am a bit confused</p>