mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Added DatabaseFeatures.is_postgresql_9_5 to avoid repetition.
This commit is contained in:
@@ -52,17 +52,10 @@ class DatabaseFeatures(BaseDatabaseFeatures):
|
|||||||
supports_aggregate_filter_clause = True
|
supports_aggregate_filter_clause = True
|
||||||
|
|
||||||
@cached_property
|
@cached_property
|
||||||
def has_select_for_update_skip_locked(self):
|
def is_postgresql_9_5(self):
|
||||||
return self.connection.pg_version >= 90500
|
return self.connection.pg_version >= 90500
|
||||||
|
|
||||||
@cached_property
|
has_select_for_update_skip_locked = is_postgresql_9_5
|
||||||
def has_brin_index_support(self):
|
has_brin_index_support = is_postgresql_9_5
|
||||||
return self.connection.pg_version >= 90500
|
has_jsonb_agg = is_postgresql_9_5
|
||||||
|
has_gin_pending_list_limit = is_postgresql_9_5
|
||||||
@cached_property
|
|
||||||
def has_jsonb_agg(self):
|
|
||||||
return self.connection.pg_version >= 90500
|
|
||||||
|
|
||||||
@cached_property
|
|
||||||
def has_gin_pending_list_limit(self):
|
|
||||||
return self.connection.pg_version >= 90500
|
|
||||||
|
|||||||
Reference in New Issue
Block a user