Skip to content

Issue 439 #440

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 2 commits into from
Oct 13, 2021
Merged
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
29 changes: 28 additions & 1 deletion tests/archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ def test_pgpro434_2(self):
pg_options={
'checkpoint_timeout': '30s'}
)

if self.get_version(node) < self.version_to_num('9.6.0'):
self.del_test_dir(module_name, fname)
return unittest.skip(
'Skipped because pg_control_checkpoint() is not supported in PG 9.5')

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)
self.set_archiving(backup_dir, 'node', node)
Expand Down Expand Up @@ -693,6 +699,11 @@ def test_replica_archive(self):
'checkpoint_timeout': '30s',
'max_wal_size': '32MB'})

if self.get_version(master) < self.version_to_num('9.6.0'):
self.del_test_dir(module_name, fname)
return unittest.skip(
'Skipped because backup from replica is not supported in PG 9.5')

self.init_pb(backup_dir)
# ADD INSTANCE 'MASTER'
self.add_instance(backup_dir, 'master', master)
Expand Down Expand Up @@ -818,6 +829,12 @@ def test_master_and_replica_parallel_archiving(self):
pg_options={
'archive_timeout': '10s'}
)

if self.get_version(master) < self.version_to_num('9.6.0'):
self.del_test_dir(module_name, fname)
return unittest.skip(
'Skipped because backup from replica is not supported in PG 9.5')

replica = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'replica'))
replica.cleanup()
Expand Down Expand Up @@ -908,6 +925,11 @@ def test_basic_master_and_replica_concurrent_archiving(self):
'checkpoint_timeout': '30s',
'archive_timeout': '10s'})

if self.get_version(master) < self.version_to_num('9.6.0'):
self.del_test_dir(module_name, fname)
return unittest.skip(
'Skipped because backup from replica is not supported in PG 9.5')

replica = self.make_simple_node(
base_dir=os.path.join(module_name, fname, 'replica'))
replica.cleanup()
Expand Down Expand Up @@ -2009,6 +2031,11 @@ def test_archive_pg_receivexlog_partial_handling(self):
set_replication=True,
initdb_params=['--data-checksums'])

if self.get_version(node) < self.version_to_num('9.6.0'):
self.del_test_dir(module_name, fname)
return unittest.skip(
'Skipped because backup from replica is not supported in PG 9.5')

self.init_pb(backup_dir)
self.add_instance(backup_dir, 'node', node)

Expand Down Expand Up @@ -2655,4 +2682,4 @@ def test_archive_empty_history_file(self):
#t2 ----------------
# /
#t1 -A--------
#
#