Skip to content

Commit b8b7d28

Browse files
committed
Remove support for PostgreSQL 11 and 12
Signed-off-by: Patrick Cloke <clokep@patrick.cloke.us>
1 parent 29d5863 commit b8b7d28

File tree

5 files changed

+13
-4
lines changed

5 files changed

+13
-4
lines changed

.ci/scripts/calculate_jobs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def set_output(key: str, value: str):
6060
{
6161
"python-version": "3.9",
6262
"database": "postgres",
63-
"postgres-version": "11",
63+
"postgres-version": "13",
6464
"extras": "all",
6565
}
6666
]

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ jobs:
581581
matrix:
582582
include:
583583
- python-version: "3.9"
584-
postgres-version: "11"
584+
postgres-version: "13"
585585

586586
- python-version: "3.13"
587587
postgres-version: "17"

changelog.d/18034.removal

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Remove support for PostgreSQL 11 and 12. Contributed by @clokep.

docs/upgrade.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,14 @@ each upgrade are complete before moving on to the next upgrade, to avoid
117117
stacking them up. You can monitor the currently running background updates with
118118
[the Admin API](usage/administration/admin_api/background_updates.html#status).
119119
120+
# Upgrading to v1.122.0
121+
122+
## Dropping support for PostgreSQL 11 and 12
123+
124+
In line with our [deprecation policy](deprecation_policy.md), we've dropped
125+
support for PostgreSQL 11 and 12, as they are no longer supported upstream.
126+
This release of Synapse requires PostgreSQL 13+.
127+
120128
# Upgrading to v1.120.0
121129

122130
## Removal of experimental MSC3886 feature

synapse/storage/engines/postgres.py

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

101101
# Are we on a supported PostgreSQL version?
102-
if not allow_outdated_version and self._version < 110000:
103-
raise RuntimeError("Synapse requires PostgreSQL 11 or above.")
102+
if not allow_outdated_version and self._version < 130000:
103+
raise RuntimeError("Synapse requires PostgreSQL 13 or above.")
104104

105105
with db_conn.cursor() as txn:
106106
txn.execute("SHOW SERVER_ENCODING")

0 commit comments

Comments
 (0)