Skip to content

Commit 9e5a104

Browse files
committed
get_control_data fix for 9.4, 9.3 and 9.2
1 parent 2d1a3be commit 9e5a104

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

testgres/testgres.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,11 @@ def get_control_data(self):
424424
Return contents of pg_control file
425425
"""
426426

427-
_params = ["-D", self.data_dir]
427+
if get_pg_config()["VERSION_NUM"] < '9.5.0':
428+
_params = [self.data_dir]
429+
else:
430+
_params = ["-D", self.data_dir]
431+
428432
lines = _execute_utility("pg_controldata", _params, self.utils_logname)
429433

430434
out_data = {}

0 commit comments

Comments
 (0)