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:
Alexander Kukushkin
2018-06-26 13:48:16 +01:00
committed by GitHub
parent 959f254bfb
commit 4128cba628
+3 -1
View File
@@ -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()