diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-11-09 09:55:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-09 09:55:34 -0500 |
commit | e9a4343cb2daa55503bb2a2d1431d83bf9773e68 (patch) | |
tree | 8b03545cd8085d1cb139f524f96d3bc9ccef7360 /synapse/storage/engines | |
parent | Bump dawidd6/action-download-artifact from 2.24.0 to 2.24.1 (#14398) (diff) | |
download | synapse-e9a4343cb2daa55503bb2a2d1431d83bf9773e68.tar.xz |
Drop support for Postgres 10 in full text search code. (#14397)
Diffstat (limited to 'synapse/storage/engines')
-rw-r--r-- | synapse/storage/engines/postgres.py | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/synapse/storage/engines/postgres.py b/synapse/storage/engines/postgres.py index 0c4fd88914..719a517336 100644 --- a/synapse/storage/engines/postgres.py +++ b/synapse/storage/engines/postgres.py @@ -170,22 +170,6 @@ class PostgresEngine( """Do we support the `RETURNING` clause in insert/update/delete?""" return True - @property - def tsquery_func(self) -> str: - """ - Selects a tsquery_* func to use. - - Ref: https://www.postgresql.org/docs/current/textsearch-controls.html - - Returns: - The function name. - """ - # Postgres 11 added support for websearch_to_tsquery. - assert self._version is not None - if self._version >= 110000: - return "websearch_to_tsquery" - return "plainto_tsquery" - def is_deadlock(self, error: Exception) -> bool: if isinstance(error, psycopg2.DatabaseError): # https://www.postgresql.org/docs/current/static/errcodes-appendix.html |