|
@@ -6,7 +6,7 @@ from django.utils.functional import cached_property
|
|
|
|
|
|
|
|
|
class DatabaseFeatures(BaseDatabaseFeatures):
|
|
|
- minimum_database_version = (10,)
|
|
|
+ minimum_database_version = (11,)
|
|
|
allows_group_by_selected_pks = True
|
|
|
can_return_columns_from_insert = True
|
|
|
can_return_rows_from_bulk_insert = True
|
|
@@ -59,6 +59,7 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|
|
json_key_contains_list_matching_requires_list = True
|
|
|
supports_update_conflicts = True
|
|
|
supports_update_conflicts_with_target = True
|
|
|
+ supports_covering_indexes = True
|
|
|
test_collations = {
|
|
|
"non_default": "sv-x-icu",
|
|
|
"swedish_ci": "sv-x-icu",
|
|
@@ -81,10 +82,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|
|
"PositiveSmallIntegerField": "SmallIntegerField",
|
|
|
}
|
|
|
|
|
|
- @cached_property
|
|
|
- def is_postgresql_11(self):
|
|
|
- return self.connection.pg_version >= 110000
|
|
|
-
|
|
|
@cached_property
|
|
|
def is_postgresql_12(self):
|
|
|
return self.connection.pg_version >= 120000
|
|
@@ -98,8 +95,6 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|
|
return self.connection.pg_version >= 140000
|
|
|
|
|
|
has_bit_xor = property(operator.attrgetter("is_postgresql_14"))
|
|
|
- has_websearch_to_tsquery = property(operator.attrgetter("is_postgresql_11"))
|
|
|
- supports_covering_indexes = property(operator.attrgetter("is_postgresql_11"))
|
|
|
supports_covering_gist_indexes = property(operator.attrgetter("is_postgresql_12"))
|
|
|
supports_covering_spgist_indexes = property(operator.attrgetter("is_postgresql_14"))
|
|
|
supports_non_deterministic_collations = property(
|