Rollback changes regarding config_file

It could be set only on the postgres command line anyway.
This commit is contained in:
Alexander Kukushkin
2016-06-02 16:45:17 +02:00
parent 2e5ce4a303
commit d536b4b62a
+1 -3
View File
@@ -51,7 +51,6 @@ class Postgresql(object):
CMDLINE_OPTIONS = {
'listen_addresses': None,
'port': None,
'config_file': None,
'wal_level': 'hot_standby',
'hot_standby': 'on',
'max_wal_senders': 5,
@@ -454,8 +453,7 @@ class Postgresql(object):
self.resolve_connection_addresses()
options = ' '.join("--{0}='{1}'".format(p, self._server_parameters[p]) for p in self.CMDLINE_OPTIONS
if self._server_parameters[p] is not None and
not (self._major_version < 9.4 and p in ('max_replication_slots', 'wal_log_hints')))
if not (self._major_version < 9.4 and p in ('max_replication_slots', 'wal_log_hints')))
ret = subprocess.call(self._pg_ctl + ['start', '-o', options], env=env, preexec_fn=os.setsid) == 0
self._pending_restart = False