Skip to content

Commit

Permalink
Ensure we can read the version of PostgreSQL 10 (zalando#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oleksii Kliukin authored and hjacobs committed Mar 13, 2017
1 parent 337e1b9 commit 21fb917
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pg_view/models/db_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def get_postmasters_directories():
try:
fp = open(PG_VERSION_FILENAME, 'rU')
val = fp.read().strip()
if val is not None and len(val) >= 3:
if val is not None and len(val) >= 2:
version = float(val)
except os.error as e:
logger.error(
Expand Down

0 comments on commit 21fb917

Please sign in to comment.