現象
$ psql -l
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"?
posgreに接続できないみたいなエラーだろうが、俺何もしてないぞ。
解決策
とりあえず、エラーの内容をそのままググる。
おーエラーそのまま一緒!!
本当にありがとうございます。助かりました。
で、解決策はpostmaster.pid
を消す!
$ rm /usr/local/var/postgres/postmaster.pid
$ psql -l
psql: FATAL: the database system is starting up # 再起動中
$ psql -l
List of databases
Name | Owner | Encoding | Collate | Ctype | Access privileges
-----------------------------+-------+----------+-------------+-------------+-------------------
hogehoge | taku | UTF8 | ja_JP.UTF-8 | ja_JP.UTF-8 |
めでたしめでたし。