Skip to content

Commit 44ad117

Browse files
committed
Merge remote-tracking branch 'gsmol/master'
2 parents 2d1a3be + 9e5a104 commit 44ad117

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)