mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
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:
committed by
GitHub
parent
10f2321334
commit
23e6f65156
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user