After upgrade from PostgreSQL 9.3.5 to 9.4.0 I'll cleaned previous version via
brew cleanup postgresql
but getting error, when want to start working with new version of PostgreSQL:
relrin at MacBook-Relrin in ~ exited 127
=> psql
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Ok, try restart postgre:
relrin at MacBook-Relrin in ~
=> lunchy stop postgre
/Library/Ruby/Gems/2.0.0/gems/lunchy-0.8.0/lib/lunchy.rb:138: warning: Insecure world writable dir /usr in PATH, mode 040777
/usr/local/Cellar/postgresql/9.4.0/homebrew.mxcl.postgresql.plist: Could not find specified service
stopped homebrew.mxcl.postgresql
How can I fix this last issue, that I could work with the database?