diff options
author | Mark Wong | 2017-07-24 04:50:14 +0000 |
---|---|---|
committer | Mark Wong | 2017-12-19 00:23:27 +0000 |
commit | af9c1ef86dfa9fe22cbed192eb64e8022c0ea5a8 (patch) | |
tree | a622994e9800e72c511e58f1ae694cb742f112e4 | |
parent | f170c0cc91789d2aa8e1bbc2dec82789114fbe73 (diff) |
Install pgbench from contrib for older versions
Prior to 9.5, pgbench was in contrib.
-rw-r--r-- | client/utils/git.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/client/utils/git.py b/client/utils/git.py index 587e5a4..d380d7f 100644 --- a/client/utils/git.py +++ b/client/utils/git.py @@ -80,3 +80,9 @@ class GitRepository(object): stderr=STDOUT) call(['make', '-s', '-j', str(cpu_count()), 'install'], cwd=self._path, stdout=strout, stderr=STDOUT) + + # Install pgbench from contrib in the older versions + oldpgbenchdir = ''.join([self._path, '/', 'contrib/pgbench']) + if os.path.isdir(oldpgbenchdir): + call(['make', '-s', '-j', str(cpu_count()), 'install'], + cwd=oldpgbenchdir, stdout=strout, stderr=STDOUT) |