mirror of
https://github.com/outbackdingo/patroni.git
synced 2026-08-25 14:53:37 +00:00
max_worker_processes parameter was introduced only in 9.4 (#724)
exclude it from the list on 9.3 when building effective configuration
This commit is contained in:
@@ -835,11 +835,13 @@ class Postgresql(object):
|
||||
|
||||
OPTIONS_MAPPING = {
|
||||
'max_connections': 'max_connections setting',
|
||||
'max_worker_processes': 'max_worker_processes setting',
|
||||
'max_prepared_transactions': 'max_prepared_xacts setting',
|
||||
'max_locks_per_transaction': 'max_locks_per_xact setting'
|
||||
}
|
||||
|
||||
if self._major_version >= 90400:
|
||||
OPTIONS_MAPPING['max_worker_processes'] = 'max_worker_processes setting'
|
||||
|
||||
data = self.controldata()
|
||||
effective_configuration = self._server_parameters.copy()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user