Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit a5fcdea

Browse files
authored
Remove support for PostgreSQL 10 (#14392)
Signed-off-by: Sean Quah <[email protected]>
1 parent d85cba1 commit a5fcdea

File tree

5 files changed

+15
-4
lines changed

5 files changed

+15
-4
lines changed

.ci/scripts/calculate_jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def set_output(key: str, value: str):
5454
{
5555
"python-version": "3.7",
5656
"database": "postgres",
57-
"postgres-version": "10",
57+
"postgres-version": "11",
5858
"extras": "all",
5959
}
6060
]

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -409,7 +409,7 @@ jobs:
409409
matrix:
410410
include:
411411
- python-version: "3.7"
412-
postgres-version: "10"
412+
postgres-version: "11"
413413

414414
- python-version: "3.11"
415415
postgres-version: "14"

changelog.d/14392.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove support for PostgreSQL 10.

docs/upgrade.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ process, for example:
8888
dpkg -i matrix-synapse-py3_1.3.0+stretch1_amd64.deb
8989
```
9090
91+
# Upgrading to v1.72.0
92+
93+
## Dropping support for PostgreSQL 10
94+
95+
In line with our [deprecation policy](deprecation_policy.md), we've dropped
96+
support for PostgreSQL 10, as it is no longer supported upstream.
97+
98+
This release of Synapse requires PostgreSQL 11+.
99+
100+
91101
# Upgrading to v1.71.0
92102

93103
## Removal of the `generate_short_term_login_token` module API method

synapse/storage/engines/postgres.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ def check_database(
8181
allow_unsafe_locale = self.config.get("allow_unsafe_locale", False)
8282

8383
# Are we on a supported PostgreSQL version?
84-
if not allow_outdated_version and self._version < 100000:
85-
raise RuntimeError("Synapse requires PostgreSQL 10 or above.")
84+
if not allow_outdated_version and self._version < 110000:
85+
raise RuntimeError("Synapse requires PostgreSQL 11 or above.")
8686

8787
with db_conn.cursor() as txn:
8888
txn.execute("SHOW SERVER_ENCODING")

0 commit comments

Comments
 (0)