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
原文地址:https://www.cnblogs.com/ctypyb2002/p/9793124.html