我尝试按照建议的here更改postgresql
的文件夹位置
但是如果我尝试:
sudo -u postgres 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/run/postgresql/.s.PGSQL.5432"
新位置在:
/home/database/postgresql