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

Commiteb04762

Browse files
authored
Add options to pg_basebackup (#121)
1 parent8e06f91 commiteb04762

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎testgres/backup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ def __init__(self,
3333
node,
3434
base_dir=None,
3535
username=None,
36-
xlog_method=XLogMethod.fetch):
36+
xlog_method=XLogMethod.fetch,
37+
options=None):
3738
"""
3839
Create a new backup.
3940
@@ -43,6 +44,8 @@ def __init__(self,
4344
username: database user name.
4445
xlog_method: none | fetch | stream (see docs)
4546
"""
47+
ifnotoptions:
48+
options= []
4649
self.os_ops=node.os_ops
4750
ifnotnode.status():
4851
raiseBackupException('Node must be running')
@@ -77,6 +80,7 @@ def __init__(self,
7780
"-D",data_dir,
7881
"-X",xlog_method.value
7982
]# yapf: disable
83+
_params+=options
8084
execute_utility(_params,self.log_file)
8185

8286
def__enter__(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp