diff --git a/rattail_fabric/postgresql.py b/rattail_fabric/postgresql.py index c044dd2..ef9ba06 100644 --- a/rattail_fabric/postgresql.py +++ b/rattail_fabric/postgresql.py @@ -47,7 +47,7 @@ def get_version(): """ result = sudo('psql --version') if result.succeeded: - match = re.match(r'^psql \(PostgreSQL\) (\d+\.\d+)\.\d+', result) + match = re.match(r'^psql \(PostgreSQL\) (\d+\.\d+)(?:\.\d+)?', result) if match: return float(match.group(1))