Fixed #35075 -- Added deduplicate_items parameter to BTreeIndex.

This commit is contained in:
Nick Pope 2021-05-29 00:53:18 +01:00 committed by Mariusz Felisiak
parent f412add786
commit 45f778eded
5 changed files with 48 additions and 8 deletions

View file

@ -46,14 +46,23 @@ available from the ``django.contrib.postgres.indexes`` module.
``BTreeIndex``
==============
.. class:: BTreeIndex(*expressions, fillfactor=None, **options)
.. class:: BTreeIndex(*expressions, fillfactor=None, deduplicate_items=None, **options)
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.
Provide a boolean value to the deduplicate_items_ parameter to control
whether deduplication is enabled. PostgreSQL enables deduplication by
default.
.. versionchanged:: 5.1
The ``deduplicate_items`` parameter was added.
.. _fillfactor: https://www.postgresql.org/docs/current/sql-createindex.html#SQL-CREATEINDEX-STORAGE-PARAMETERS
.. _deduplicate_items: https://www.postgresql.org/docs/current/btree-implementation.html#BTREE-DEDUPLICATION
``GinIndex``
============