Fixed #28887 -- Added SpGistIndex to django.contrib.postgres.

This commit is contained in:
Nick Pope 2017-12-05 09:48:04 +00:00 committed by Tim Graham
parent d526b07784
commit 4c36e9e492
4 changed files with 82 additions and 4 deletions

View file

@ -91,3 +91,18 @@ available from the ``django.contrib.postgres.indexes`` module.
they suffer from a number of data integrity issues in older versions.
.. _fillfactor: https://www.postgresql.org/docs/current/static/sql-createindex.html#SQL-CREATEINDEX-STORAGE-PARAMETERS
``SpGistIndex``
===============
.. class:: SpGistIndex(fillfactor=None, **options)
.. versionadded:: 2.2
Creates an `SP-GiST index
<https://www.postgresql.org/docs/current/static/spgist.html>`_.
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