Don't wal_keep_segments as command line argument to postgres (#460)

It make it not possible to change it without restart.
Fixes https://github.com/zalando/patroni/issues/459
This commit is contained in:
Alexander Kukushkin
2017-07-03 12:07:24 +02:00
committed by GitHub
parent 10f2321334
commit 23e6f65156
+2 -2
View File
@@ -804,8 +804,8 @@ class Postgresql(object):
self._replace_pg_hba()
self.resolve_connection_addresses()
opts = {p: self._server_parameters[p] for p in self.CMDLINE_OPTIONS if p in self._server_parameters}
options = ['--{0}={1}'.format(p, v) for p, v in opts.items()]
options = ['--{0}={1}'.format(p, self._server_parameters[p]) for p in self.CMDLINE_OPTIONS
if p in self._server_parameters and p != 'wal_keep_segments']
start_initiated = time.time()