Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9e2828c

Browse files
committed
[create_archive_get] Function testgres_pg_probackup2 archive-get added
1 parent0edc937 commit9e2828c

File tree

1 file changed

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

1 file changed

+14
-0
lines changed

‎testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -698,6 +698,20 @@ def set_archiving(
698698

699699
node.set_auto_conf(options)
700700

701+
defarchive_get(self,instance,node,wal_file_name,wal_file_path=None,options=None,expect_error=False):
702+
ifoptionsisNone:
703+
options= []
704+
cmd= [
705+
'archive-get',
706+
'--instance={0}'.format(instance),
707+
'--wal-file-name={0}'.format(wal_file_name),
708+
]
709+
ifwal_file_pathisNone:
710+
cmd=cmd+ ['--wal-file-path={0}'.format(os.path.join(node.data_dir,'pg_wal'))]
711+
else:
712+
cmd=cmd+ ['--wal-file-path={0}'.format(wal_file_path)]
713+
returnself.run(cmd+options,expect_error=expect_error)
714+
701715
defswitch_wal_segment(self,node,sleep_seconds=1,and_tx=False):
702716
"""
703717
Execute pg_switch_wal() in given node

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp