Skip to content

Commit a660ab1

Browse files
author
Stepan Neretin
committed
Add PG_PROBACKUP_WAL_TREE_ENABLED env param
PG_PROBACKUP_WAL_TREE_ENABLED used to set to probackup setting when creating instance how wals should be located
1 parent 1d1d3f0 commit a660ab1

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def __init__(self, test_class: unittest.TestCase,
5454
self.probackup_path = probackup_path or init_params.probackup_path
5555
self.probackup_old_path = init_params.probackup_old_path
5656
self.remote = init_params.remote
57+
self.wal_tree_enabled = init_params.wal_tree_enabled
5758
self.verbose = init_params.verbose
5859
self.archive_compress = init_params.archive_compress
5960
self.test_class.output = None
@@ -185,6 +186,9 @@ def add_instance(self, instance, node, old_binary=False, options=None, expect_er
185186
'--remote-proto=ssh',
186187
'--remote-host=localhost']
187188

189+
if self.wal_tree_enabled:
190+
options = options + ['--wal-tree']
191+
188192
return self.run(cmd + options, old_binary=old_binary, expect_error=expect_error)
189193

190194
def set_config(self, instance, old_binary=False, options=None, expect_error=False):

testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ def __init__(self):
170170

171171
self.remote = test_env.get('PGPROBACKUP_SSH_REMOTE', None) == 'ON'
172172
self.ptrack = test_env.get('PG_PROBACKUP_PTRACK', None) == 'ON' and self.pg_config_version >= 110000
173+
self.wal_tree_enabled = test_env.get('PG_PROBACKUP_WAL_TREE_ENABLED', None) == 'ON'
173174

174175
self.paranoia = test_env.get('PG_PROBACKUP_PARANOIA', None) == 'ON'
175176
env_compress = test_env.get('ARCHIVE_COMPRESSION', None)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy