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

@ -10,13 +10,22 @@ available from the ``django.contrib.postgres.indexes`` module.
``BrinIndex``
=============
.. class:: BrinIndex(pages_per_range=None, **options)
.. class:: BrinIndex(autosummarize=None, pages_per_range=None, **options)
Creates a `BRIN index
<https://www.postgresql.org/docs/current/static/brin-intro.html>`_.
Set the ``autosummarize`` parameter to ``True`` to enable `automatic
summarization`_ to be performed by autovacuum.
The ``pages_per_range`` argument takes a positive integer.
.. _automatic summarization: https://www.postgresql.org/docs/current/static/brin-intro.html#BRIN-OPERATION
.. versionchanged:: 2.2
The ``autosummarize`` parameter was added.
``GinIndex``
============

View file

@ -86,6 +86,9 @@ Minor features
:class:`~django.contrib.postgres.indexes.SpGistIndex` classes allow
creating ``hash`` and ``SP-GiST`` indexes in the database.
* :class:`~django.contrib.postgres.indexes.BrinIndex` now has the
``autosummarize`` parameter.
:mod:`django.contrib.redirects`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -42,6 +42,7 @@ autoextend
autogenerated
autoincrement
autoreload
autovacuum
Azerbaijani
backend
backends