Skip to content

Add PG_PROBACKUP_WAL_TREE_ENABLED env param #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
Stepan Neretin committed Sep 5, 2024
commit a660ab187e59c9f6f9da3d67bc4d7e68163f19ba
4 changes: 4 additions & 0 deletions testgres/plugins/pg_probackup2/pg_probackup2/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def __init__(self, test_class: unittest.TestCase,
self.probackup_path = probackup_path or init_params.probackup_path
self.probackup_old_path = init_params.probackup_old_path
self.remote = init_params.remote
self.wal_tree_enabled = init_params.wal_tree_enabled
self.verbose = init_params.verbose
self.archive_compress = init_params.archive_compress
self.test_class.output = None
Expand Down Expand Up @@ -185,6 +186,9 @@ def add_instance(self, instance, node, old_binary=False, options=None, expect_er
'--remote-proto=ssh',
'--remote-host=localhost']

if self.wal_tree_enabled:
options = options + ['--wal-tree']

return self.run(cmd + options, old_binary=old_binary, expect_error=expect_error)

def set_config(self, instance, old_binary=False, options=None, expect_error=False):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def __init__(self):

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

self.paranoia = test_env.get('PG_PROBACKUP_PARANOIA', None) == 'ON'
env_compress = test_env.get('ARCHIVE_COMPRESSION', None)
Expand Down