1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-07-13 06:50:16 +02:00

relaxation of the requirement for calling the old pg_catalog.ptrack_version() function

This commit is contained in:
Mikhail A. Kulagin
2021-10-18 17:20:35 +03:00
parent 7eaac77fe5
commit 3cd69fb903
2 changed files with 9 additions and 10 deletions

View File

@ -312,16 +312,11 @@ class ProbackupTest(object):
self.ptrack = False
if 'PG_PROBACKUP_PTRACK' in self.test_env:
if self.test_env['PG_PROBACKUP_PTRACK'] == 'ON':
self.ptrack = True
if self.pg_config_version >= self.version_to_num('11.0'):
self.ptrack = True
os.environ["PGAPPNAME"] = "pg_probackup"
if self.ptrack:
self.assertGreaterEqual(
self.pg_config_version,
self.version_to_num('11.0'),
"ptrack testing require PostgreSQL >= 11")
@property
def pg_config_version(self):
return self.version_to_num(