mirror of
https://github.com/django/django.git
synced 2025-08-03 10:34:04 +00:00
Fixed #28990 -- Added autosummarize parameter to BrinIndex.
This commit is contained in:
parent
4c36e9e492
commit
d6381d3559
6 changed files with 45 additions and 4 deletions
|
@ -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``
|
||||
============
|
||||
|
||||
|
|
|
@ -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`
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
@ -42,6 +42,7 @@ autoextend
|
|||
autogenerated
|
||||
autoincrement
|
||||
autoreload
|
||||
autovacuum
|
||||
Azerbaijani
|
||||
backend
|
||||
backends
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue