pg_ctl 加载启动参数文件一种不太常见的写法

来源:互联网 发布:永久爱奇艺会员软件 编辑:程序博客网 时间:2024/05/20 11:48

pg_ctl 加载启动参数文件一种不太常见的写法

$ pg_ctl start -D $PGDATA -o “-c config_file=/etc/postgresql/9.6/main/postgresql.conf”

参数说明如下

$ PGHOME/bin/pg_ctl –help
-o OPTIONS
command line options to pass to postgres, (PostgreSQL server executable) or initdb

$ PGHOME/bin/postgres –help
-c NAME=VALUE set run-time parameter