summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2021-04-08 12:00:47 +0100
committerRichard van der Hoff <richard@matrix.org>2021-04-08 16:42:32 +0100
commitabade34633da2002014a1dd7e4da3f558e610582 (patch)
treecbbae1709dd8843aeae757ea4a283eaa44bb5bff
parentunpin olddeps build from py36 (diff)
downloadsynapse-abade34633da2002014a1dd7e4da3f558e610582.tar.xz
Require py36 and Postgres 9.6
-rw-r--r--changelog.d/9766.feature1
-rwxr-xr-xsetup.py2
-rw-r--r--synapse/storage/engines/postgres.py4
3 files changed, 4 insertions, 3 deletions
diff --git a/changelog.d/9766.feature b/changelog.d/9766.feature
new file mode 100644
index 0000000000..030bdb4561
--- /dev/null
+++ b/changelog.d/9766.feature
@@ -0,0 +1 @@
+Synapse now requires Python 3.6 or later and Postgres 9.6 or later.
diff --git a/setup.py b/setup.py
index 29e9971dc1..4e9e333c60 100755
--- a/setup.py
+++ b/setup.py
@@ -123,7 +123,7 @@ setup(
     zip_safe=False,
     long_description=long_description,
     long_description_content_type="text/x-rst",
-    python_requires="~=3.5",
+    python_requires="~=3.6",
     classifiers=[
         "Development Status :: 5 - Production/Stable",
         "Topic :: Communications :: Chat",
diff --git a/synapse/storage/engines/postgres.py b/synapse/storage/engines/postgres.py
index 80a3558aec..d95f88b3e9 100644
--- a/synapse/storage/engines/postgres.py
+++ b/synapse/storage/engines/postgres.py
@@ -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")