显然,我应该把postgresql.conf放在一个单独的目录下,根据这个 :
# Note that recovery.conf must be in $PGDATA directory. # It should NOT be located in the same directory as postgresql.conf
有什么特别的原因吗? 我已经看到两个系统在两个$ PGDATA目录中似乎工作正常。
这个评论是给那些在$PGDATA之外有postgresql.conf用户使用的。 例如,用于PostgreSQL的基于Debian的软件包会将/var/lib/postgresql的数据目录以及/etc/postgresql/的configuration文件安装到其中。
有了这个布局,一些用户可以考虑将recovery.conf放在与postgresql.conf相同的目录中,只是因为它也是一个configuration文件。 但这是一个错误,它会被忽略。
为了不那么模棱两可,第二句话可能是:
# It should NOT be located in the same directory as postgresql.conf, # unless that directory happens to be $PGDATA