testgres-pg-probackup2 0.6.0__tar.gz → 0.7.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (15) hide show
  1. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/PKG-INFO +1 -1
  2. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/pg_probackup2/app.py +21 -5
  3. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/setup.py +1 -1
  4. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/testgres_pg_probackup2.egg-info/PKG-INFO +1 -1
  5. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/README.md +0 -0
  6. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/pg_probackup2/__init__.py +0 -0
  7. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/pg_probackup2/gdb.py +0 -0
  8. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/pg_probackup2/init_helpers.py +0 -0
  9. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/pg_probackup2/storage/__init__.py +0 -0
  10. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/pg_probackup2/storage/fs_backup.py +0 -0
  11. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/setup.cfg +0 -0
  12. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/testgres_pg_probackup2.egg-info/SOURCES.txt +0 -0
  13. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/testgres_pg_probackup2.egg-info/dependency_links.txt +0 -0
  14. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/testgres_pg_probackup2.egg-info/requires.txt +0 -0
  15. {testgres_pg_probackup2-0.6.0 → testgres_pg_probackup2-0.7.0}/testgres_pg_probackup2.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres_pg_probackup2
3
- Version: 0.6.0
3
+ Version: 0.7.0
4
4
  Summary: Plugin for testgres that manages pg_probackup2
5
5
  Home-page: https://github.com/postgrespro/testgres
6
6
  Author: Postgres Professional
@@ -159,11 +159,12 @@ class ProbackupApp:
159
159
  command += ['--log-directory=' + self.pb_log_path]
160
160
  strcommand += ' ' + command[-1]
161
161
 
162
- if 'pglz' in strcommand and \
163
- ' -j' not in strcommand and \
164
- '--thread' not in strcommand:
165
- command += ['-j', '1']
166
- strcommand += ' -j 1'
162
+ if init_params.major_version == 2:
163
+ if 'pglz' in strcommand and \
164
+ ' -j' not in strcommand and \
165
+ '--thread' not in strcommand:
166
+ command += ['-j', '1']
167
+ strcommand += ' -j 1'
167
168
 
168
169
  return command, strcommand
169
170
 
@@ -738,6 +739,21 @@ class ProbackupApp:
738
739
  ]
739
740
  return self.run(cmd_list + options, old_binary=old_binary, expect_error=expect_error)
740
741
 
742
+ def retention(
743
+ self, instance, options=None, old_binary=False, gdb=False, expect_error=False):
744
+ if init_params.major_version < 3:
745
+ logging.warning("retention command is only available for pg_probackup 3")
746
+ return None
747
+ if options is None:
748
+ options = []
749
+ cmd_list = [
750
+ 'retention',
751
+ '--instance={0}'.format(instance),
752
+ ]
753
+
754
+ return self.run(cmd_list + options, old_binary=old_binary, gdb=gdb,
755
+ expect_error=expect_error)
756
+
741
757
  def show_config(self, instance, old_binary=False, expect_error=False, gdb=False):
742
758
  out_dict = {}
743
759
  cmd_list = [
@@ -4,7 +4,7 @@ except ImportError:
4
4
  from distutils.core import setup
5
5
 
6
6
  setup(
7
- version='0.6.0',
7
+ version='0.7.0',
8
8
  name='testgres_pg_probackup2',
9
9
  packages=['pg_probackup2', 'pg_probackup2.storage'],
10
10
  description='Plugin for testgres that manages pg_probackup2',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: testgres_pg_probackup2
3
- Version: 0.6.0
3
+ Version: 0.7.0
4
4
  Summary: Plugin for testgres that manages pg_probackup2
5
5
  Home-page: https://github.com/postgrespro/testgres
6
6
  Author: Postgres Professional