Fixed #29614 -- Added BTreeIndex to django.contrib.postres.

This commit is contained in:
Nick Pope 2018-07-30 23:28:11 +01:00 committed by Tim Graham
parent d6381d3559
commit 6b4d1ec8ff
5 changed files with 86 additions and 5 deletions

View file

@ -26,6 +26,20 @@ available from the ``django.contrib.postgres.indexes`` module.
The ``autosummarize`` parameter was added.
``BTreeIndex``
==============
.. class:: BTreeIndex(fillfactor=None, **options)
.. versionadded:: 2.2
Creates a B-Tree index.
Provide an integer value from 10 to 100 to the fillfactor_ parameter to
tune how packed the index pages will be. PostgreSQL's default is 90.
.. _fillfactor: https://www.postgresql.org/docs/current/static/sql-createindex.html#SQL-CREATEINDEX-STORAGE-PARAMETERS
``GinIndex``
============