summary refs log tree commit diff
path: root/synapse/storage/engines/postgres.py
diff options
context:
space:
mode:
authorPatrick Cloke <clokep@users.noreply.github.com>2024-12-19 12:02:47 -0500
committerGitHub <noreply@github.com>2024-12-19 17:02:47 +0000
commit2d23250da719e5b81e5793e525171469958466f7 (patch)
tree5938fe83f3d4ed6e5ff747fcdc3d67ee0afb34c7 /synapse/storage/engines/postgres.py
parentDisable statement timeout during room purge (#18017) (diff)
downloadsynapse-2d23250da719e5b81e5793e525171469958466f7.tar.xz
Remove support for PostgreSQL 11 and 12 (#18034)
This is essentially matrix-org/synapse#14392. I didn't see anything in
there about updating sytest or complement.

The main driver of this is so that I can use `jsonb_path_exists` in
#17488. 😄
Diffstat (limited to 'synapse/storage/engines/postgres.py')
-rw-r--r--synapse/storage/engines/postgres.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/engines/postgres.py b/synapse/storage/engines/postgres.py

index 8c8c6d0414..e4cd359201 100644 --- a/synapse/storage/engines/postgres.py +++ b/synapse/storage/engines/postgres.py
@@ -99,8 +99,8 @@ class PostgresEngine( allow_unsafe_locale = self.config.get("allow_unsafe_locale", False) # Are we on a supported PostgreSQL version? - if not allow_outdated_version and self._version < 110000: - raise RuntimeError("Synapse requires PostgreSQL 11 or above.") + if not allow_outdated_version and self._version < 130000: + raise RuntimeError("Synapse requires PostgreSQL 13 or above.") with db_conn.cursor() as txn: txn.execute("SHOW SERVER_ENCODING")