title: starting postgres server on Mac
body: <p>I am having this issue third or forth time where after restarting my Mac (Yosemite and same thing with previous OSX version) postgres server doesn't start. I had installed my postgres following <a href="https://www.codefellows.org/blog/three-battle-tested-ways-to-install-postgresql" rel="noreferrer">this</a> link. Any idea why this consistently occurs after every restart? </p>
  
  <p>typing <code>psql</code> it gives</p>
  
  <pre><code>psql: could not connect to server: No such file or directory
  Is the server running locally and accepting
  connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
  </code></pre>