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

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes fromall 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 committedSep 5, 2024
commita660ab187e59c9f6f9da3d67bc4d7e68163f19ba
4 changes: 4 additions & 0 deletionstestgres/plugins/pg_probackup2/pg_probackup2/app.py
View file
Open in desktop
Original file line numberDiff line numberDiff 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 DownExpand 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
View file
Open in desktop
Original file line numberDiff line numberDiff 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

[8]ページ先頭

©2009-2025 Movatter.jp