###show all files in finder in terminal paste this commands enable to view hidden files
defaults write com.apple.finder AppleShowAllFiles YES
reload Finder
killall Finder
run postgres as a server
cat /usr/local/var/postgres/postmaster.pid
rm cat /usr/local/var/postgres/postmaster.pid