如果我尝试运行该postgres
命令,我会得到:
2020-12-29 00:14:53.213 GMT [34374] LOG: skipping missing configuration file "/usr/local/pgsql/data/postgresql.auto.conf"
postgres: could not find the database system
Expected to find it in the directory "/usr/local/pgsql/data",
but could not open file "/usr/local/pgsql/data/global/pg_control": No such file or directory
如何找出告诉 postgres 查看 /usr/local/pgsql/data 的配置文件?
就我而言,postgres 是通过 Homebrew 安装在 OSX 上的。