After upgrading to Lion, I get the following error when trying to start up the Postgres server:
pg_ctl: could not open PID file "/usr/local/var/postgres/postmaster.pid": Permission denied
I also tried to re-run the initdb command, but ran into a similar problem:
initdb: could not access directory "/usr/local/var/postgres": Permission denied
If it matters, PostgreSQL was installed via Homebrew. Running brew info postgresql
yields the expected results (version, summarized docs).
which psql
yields/usr/local/bin/psql
, which should be the correct Homebrew path. I already have the proper path export set in .bash_login. Also, my issue is with starting the server, not connecting. – Ramiah