1

最初は、システムから PSQL をアンインストールして、バージョン 9.2 の postgres アプリに切り替えたいと考えていました。

このガイドに厳密に従いましたが、システムで postgresql がアクティブになっていることにまだ問題があります。

psqlは私に与えます

psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?

たどり着いたとき

rm /usr/bin/psql

私は得る

override rwxr-xr-x root/wheel compressed for /usr/bin/psql? 

これは私の能力外であり、それが何をするのかわからないので、皆さんにお尋ねします。

4

1 に答える 1

2

The files in /usr/bin are a part of your operating system, and among the numerous suppliers of PostgreSQL installers or packages for Mac OS X, I think none of them ever suggests to delete /usr/bin/psql.

In fact there are quite a few more files that you would delete, should you want to wipe out the PostgreSQL client layer as shipped by Apple. And when you'll upgrade that system to 10.8.X+1 or whatever, the Apple installer may well put them back again with newer versions.

If you're in uncharted territory when playing admin with your operating system, it's better to just follow the procedure suggested on postgres.app, which boils down to changing your program's search path, so that their psql and other tools (pg_dump, pg_restore,...) come first.

Also, related answer: How to fix pg_dump version mismatch errors?

于 2013-07-11T13:27:53.930 に答える