title: How do I fix stale postmaster.pid file on Postgres?
body: <p>I went to view a postgres schema on my local (MacOS 11) database, and was not able to view my schemas.
  Connection Refused in DBeaver!</p>
  <p><a href="https://i.stack.imgur.com/QbrFP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/QbrFP.png" alt="connection refused DBeaver" /></a></p>
  <p>So I opened my postgres desktop application, and got the warning message, &quot;Stale postmaster.pid file&quot;</p>
  <p>How can I fix this?</p>
  <p><a href="https://i.stack.imgur.com/LSciC.png" rel="noreferrer"><img src="https://i.stack.imgur.com/LSciC.png" alt="stale Postmaster.pid postgres 12 dashboard screenshot" /></a></p>