postgresql加载配置报错: unable to run postgres with pg_ctl
使用-o参数。
-o options Specifies options to be passed directly to the postgres command. The options should usually be surrounded by single or double quotes to ensure that they are passed through as a group.
完整命令:
/usr/lib/postgresql/9.3/bin/pg_ctl start \ "-D" "/var/lib/postgresql/9.3/main" \ "-o -c config_file=/etc/postgresql/9.3/main/postgresql.conf"