title: psql: error: connection to server on socket "/tmp/.s.PGSQL.5432" failed: No such file or directory
body: <p>Not really sure what caused this but most likely exiting the terminal while my rails server which was connected to PostgreSQL database was closed (not a good practice I know but lesson learned!)</p>
  <p>I've already tried the following:</p>
  <ol>
  <li>Rebooting my machine (using MBA M1 2020)</li>
  <li>Restarting PostgreSQL using homebrew <code>brew services restart  postgresql</code></li>
  <li>Re-installing PostgreSQL using Homebrew</li>
  <li>Updating PostgreSQL using Homebrew</li>
  <li>I also tried following this <a href="https://mccarthydanielle.medium.com/postgres-postmaster-pid-errors-5bdf3c2522fd" rel="noreferrer">link</a> but when I run <code>cd Library/Application\ Support/Postgres</code> terminal tells me Postgres folder doesn't exist, so I'm kind of lost already. Although I have a feeling that deleting postmaster.pid would really fix my issue. Any help would be appreciated!</li>
  </ol>