diff --git a/docs/en_US/release_notes_4_15.rst b/docs/en_US/release_notes_4_15.rst index e26b66bbb..c8026e8d0 100644 --- a/docs/en_US/release_notes_4_15.rst +++ b/docs/en_US/release_notes_4_15.rst @@ -21,6 +21,8 @@ Bug fixes | `Issue #3789 `_ - Ensure context menus never get hidden below the menu bar. | `Issue #3913 `_ - Ensure the correct "running at" agent is shown when a pgAgent job is executing. | `Issue #4459 `_ - Don't quote bigints when copying them from the Query Tool results grid. +| `Issue #4482 `_ - Ensure compression level is passed to pg_dump when backing up in directory format. +| `Issue #4483 `_ - Ensure the number of jobs can be specified when backing up in directory format. | `Issue #4730 `_ - Ensure all messages are retained in the Query Tool from long running queries. | `Issue #4845 `_ - Fixed potential errorĀ in the properties dialog for the Code tab. | `Issue #4850 `_ - Fixed an issue where Datetimepicker control opens when clicking on the label. \ No newline at end of file diff --git a/web/pgadmin/tools/backup/__init__.py b/web/pgadmin/tools/backup/__init__.py index f4e442f8e..2cc6f2979 100644 --- a/web/pgadmin/tools/backup/__init__.py +++ b/web/pgadmin/tools/backup/__init__.py @@ -386,8 +386,10 @@ def create_backup_objects_job(sid): set_param('blobs', '--blobs') elif data['format'] == 'plain': args.extend(['--format=p']) + set_value('ratio', '--compress') elif data['format'] == 'directory': args.extend(['--format=d']) + set_value('ratio', '--compress') if 'only_data' in data and data['only_data']: set_param('only_data', '--data-only') diff --git a/web/pgadmin/tools/backup/static/js/backup.js b/web/pgadmin/tools/backup/static/js/backup.js index ae31cef3b..ebc45a7c1 100644 --- a/web/pgadmin/tools/backup/static/js/backup.js +++ b/web/pgadmin/tools/backup/static/js/backup.js @@ -178,7 +178,10 @@ define([ type: 'int', min: 0, max: 9, - disabled: false, + deps: ['format'], + disabled: function(m) { + return (m.get('format') === 'tar'); + }, visible: function(m) { if (!_.isUndefined(m.get('type')) && m.get('type') === 'server') return false; @@ -207,7 +210,7 @@ define([ type: 'int', deps: ['format'], disabled: function(m) { - return !(m.get('format') === 'Directory'); + return !(m.get('format') === 'directory'); }, visible: function(m) { if (!_.isUndefined(m.get('type')) && m.get('type') === 'server')