Skip to content

Instantly share code, notes, and snippets.

@mlr
Last active December 2, 2022 19:53
Show Gist options
  • Save mlr/2831a383138771e4ff60f1631fdcfa6e to your computer and use it in GitHub Desktop.
Save mlr/2831a383138771e4ff60f1631fdcfa6e to your computer and use it in GitHub Desktop.
Start PostgreSQL mac

Sometimes restart can leave PostgreSQL not running.

tail -n 100 /usr/local/var/log/[email protected]

FATAL: lock file "postmaster.pid" already exists HINT: Is another postmaster (PID 470) running in data directory "/usr/local/var/[email protected]"?

rm /usr/local/var/[email protected]/postmaster.pid
sudo brew services restart [email protected]

Should be started successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment