title: Trying to setup postgres on OSX
body: <p>I am trying to get postgres setup locally for a rails app on my mac (10.7 Lion).</p>
  
  <p>I installed <a href="http://postgresapp.com/">postgresapp</a> and launched it, I now have an elephant in my status bar telling me that postgres is running.</p>
  
  <p>I can get to it by:</p>
  
  <pre><code>psql -h localhost
  </code></pre>
  
  <p>But when I simply run <code>psql</code> I get this error:</p>
  
  <blockquote>
    <p>psql: could not connect to server: Permission denied  Is the server
    running locally and accepting     connections on Unix domain socket
    "/var/pgsql_socket/.s.PGSQL.5432"?</p>
  </blockquote>
  
  <p>I put this:</p>
  
  <pre><code>PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
  </code></pre>
  
  <p>In <code>~/.bashrc</code> and opened a new terminal. But no dice.</p>
  
  <p>When I run <code>which psql</code> I get <code>/usr/bin/psql</code></p>
  
  <p>Not really sure what to do.. I am still pretty new to unix systems. Should I symlink <code>/usr/bin/psql</code> to <code>/Applications/Postgres.app/Contents/MacOS/bin/psql</code>?</p>