title: can not connect to the pg database hosting on Heroku
body: <p>When try connecting to the PG database I got following error:   </p>
  
  <blockquote>
    <p>$ heroku pg:psql --app rf1<br>
        psql: could not connect to server: Operation timed out
            Is the server running on host "ec2-184-73-161-119.compute-1.amazonaws.com" and accepting
            TCP/IP connections on port 5432?</p>
  </blockquote>
  
  <p>How could I fix it? 
  P.s: I am running on a OS X environment and have local pg installed.</p>
  
  <p>Update:</p>
  
  <pre><code>heroku pg:info --app rf1
  === SHARED_DATABASE (DATABASE_URL)
  Data Size: 312k
  </code></pre>