Content-Length: 279775 | pFad | http://github.com/postgrespro/testgres/commit/6b95083bb91421ae62404cee86ad1b044efe31fd

C6 Add repair command · postgrespro/testgres@6b95083 · GitHub
Skip to content

Commit 6b95083

Browse files
author
vshepard
committed
Add repair command
1 parent 95e6ad0 commit 6b95083

File tree

1 file changed

+17
-0
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+17
-0
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -811,5 +811,22 @@ def archive_get(self, instance, wal_file_name, wal_file_path, options=None, expe
811811
]
812812
return self.run(cmd + options, expect_error=expect_error)
813813

814+
def repair(
815+
self, instance=None, backup_id=None,
816+
options=None, old_binary=False, gdb=False, expect_error=False
817+
):
818+
if options is None:
819+
options = []
820+
cmd_list = [
821+
'repair',
822+
]
823+
if instance:
824+
cmd_list += ['--instance={0}'.format(instance)]
825+
if backup_id:
826+
cmd_list += ['-i', backup_id]
827+
828+
return self.run(cmd_list + options, old_binary=old_binary, gdb=gdb,
829+
expect_error=expect_error)
830+
814831
def build_backup_dir(self, backup='backup'):
815832
return fs_backup_class(rel_path=self.rel_path, backup=backup)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/testgres/commit/6b95083bb91421ae62404cee86ad1b044efe31fd

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy