Require py36 and Postgres 9.6

This commit is contained in:
Richard van der Hoff 2021-04-08 12:00:47 +01:00
parent 906065c75b
commit abade34633
3 changed files with 4 additions and 3 deletions

View file

@ -47,8 +47,8 @@ class PostgresEngine(BaseDatabaseEngine):
self._version = db_conn.server_version
# Are we on a supported PostgreSQL version?
if not allow_outdated_version and self._version < 90500:
raise RuntimeError("Synapse requires PostgreSQL 9.5+ or above.")
if not allow_outdated_version and self._version < 90600:
raise RuntimeError("Synapse requires PostgreSQL 9.6 or above.")
with db_conn.cursor() as txn:
txn.execute("SHOW SERVER_ENCODING")