How to run PostgreSQL if 'postmaster.pid' already exists
Public
15 Jun 08:20

How to run PostgreSQL if it isn’t starting because ‘postmaster.pid’ already exists

  1. remove postmaster.pid

running this

rm /usr/local/var/postgres/postmaster.pid

or this command

rm /Users/[user_name_here]/Library/Application\ Support/Postgres/var-9.6/postmaster.pid
  1. start PostgreSQL

Comments

Joe
aleksander
Thanks @Dariasz, I'm always looking for this file and wasting a lot of time.
Joe
aleksander
I've added the other command because the first one didn't work for me this time.