我有一个自定义 postgresql 构建,它显示以下输出pg_config
BINDIR = /var/buildout.webstacks.xwiki/bin DOCDIR = /var/buildout.webstacks.xwiki/share/doc/postgresql HTMLDIR = /var/buildout.webstacks.xwiki/share/doc/postgresql INCLUDEDIR = /var/buildout.webstacks.xwiki/include PKGINCLUDEDIR = /var/buildout.webstacks.xwiki/include/postgresql INCLUDEDIR-SERVER = /var/buildout.webstacks.xwiki/include/postgresql/server LIBDIR = /var/buildout.webstacks.xwiki/lib PKGLIBDIR = /var/buildout.webstacks.xwiki/lib/postgresql LOCALDIR = /var/buildout.webstacks.xwiki/share/locale MANDIR = /var/buildout.webstacks.xwiki/share/man SHAREDIR = /var/buildout.webstacks.xwiki/share/postgresql SYSCONFDIR = /var/buildout.webstacks.xwiki/etc/postgresql PGXS = /var/buildout.webstacks.xwiki/lib/postgresql/pgxs/src/makefiles/pgxs.mk 配置 = '--prefix=/var/buildout.webstacks.xwiki' '--sysconfdir=/var/buildout.webstacks.xwiki/etc' CC = gcc CPPFLAGS = -D_GNU_SOURCE CFLAGS = -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv CFLAGS_SL = -fpic LDFLAGS = -Wl,--根据需要 -Wl,-rpath,'/var/buildout.webstacks.xwiki/lib' LDFLAGS_SL = LIBS = -lpgport -lz -lreadline -lcrypt -ldl -lm 版本 = PostgreSQL 8.4.9
配置文件应该在/var/buildout.webstacks.xwiki/etc/postgresql
.
但是当我在该路径中添加或编辑配置文件时,它们会被忽略。相反,postgres 使用数据目录中的文件,在initdb
.
./configure
根据我的命令,如何让 postgres 使用我的配置(另外) 。
似乎只有一种方法可以移出
postgresql.conf
“数据目录”。在服务器启动期间。从文档:
内部
postgresql.conf
指令为:可以用来指
pg_hba.conf
和pg_ident.conf
。另请参阅:PostgreSQL 文档