Skip to content

Commit 8897946

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 8897946

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,9 @@ def add_instance(self, instance, node, old_binary=False, options=None, expect_er
185185
'--remote-proto=ssh',
186186
'--remote-host=localhost']
187187

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

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

testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py

+1
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)