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

Commit8897946

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 parent1d1d3f0 commit8897946

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

‎testgres/plugins/pg_probackup2/pg_probackup2/app.py

Lines changed: 3 additions & 0 deletions
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+
ifself.wal_tree_enabled:
189+
options=options+ ['--wal-tree']
190+
188191
returnself.run(cmd+options,old_binary=old_binary,expect_error=expect_error)
189192

190193
defset_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'andself.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)

[8]ページ先頭

©2009-2025 Movatter.jp