pg_ctl 加载启动参数文件 -o -c

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
posted @ 2017-10-10 19:44  peiybpeiyb  阅读(499)  评论(0编辑  收藏  举报