Content-Length: 1294 | pFad | http://github.com/postgrespro/testgres/pull/121.patch
thub.com
From 2fc45d26dc216fd34cdc51d6d650724bf092f2c1 Mon Sep 17 00:00:00 2001
From: vshepard
Date: Tue, 7 May 2024 10:33:07 +0200
Subject: [PATCH] Add options to pg_basebackup
---
testgres/backup.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/testgres/backup.py b/testgres/backup.py
index a89e214d..cecb0f7b 100644
--- a/testgres/backup.py
+++ b/testgres/backup.py
@@ -33,7 +33,8 @@ def __init__(self,
node,
base_dir=None,
username=None,
- xlog_method=XLogMethod.fetch):
+ xlog_method=XLogMethod.fetch,
+ options=None):
"""
Create a new backup.
@@ -43,6 +44,8 @@ def __init__(self,
username: database user name.
xlog_method: none | fetch | stream (see docs)
"""
+ if not options:
+ options = []
self.os_ops = node.os_ops
if not node.status():
raise BackupException('Node must be running')
@@ -77,6 +80,7 @@ def __init__(self,
"-D", data_dir,
"-X", xlog_method.value
] # yapf: disable
+ _params += options
execute_utility(_params, self.log_file)
def __enter__(self):
--- a PPN by Garber Painting Akron. With Image Size Reduction included!Fetched URL: http://github.com/postgrespro/testgres/pull/121.patch
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy