Fixed #28990 -- Added autosummarize parameter to BrinIndex.

This commit is contained in:
Nick Pope 2018-01-05 11:53:08 +00:00 committed by Tim Graham
parent 4c36e9e492
commit d6381d3559
6 changed files with 45 additions and 4 deletions

View file

@ -57,7 +57,12 @@ class DatabaseFeatures(BaseDatabaseFeatures):
def is_postgresql_9_5(self):
return self.connection.pg_version >= 90500
@cached_property
def is_postgresql_10(self):
return self.connection.pg_version >= 100000
has_select_for_update_skip_locked = is_postgresql_9_5
has_brin_index_support = is_postgresql_9_5
has_jsonb_agg = is_postgresql_9_5
has_brin_autosummarize = is_postgresql_10
has_gin_pending_list_limit = is_postgresql_9_5