From 45f778eded9dff59cfdd4dce8720daf87a08cfac Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Sat, 29 May 2021 00:53:18 +0100 Subject: Fixed #35075 -- Added deduplicate_items parameter to BTreeIndex. --- docs/ref/contrib/postgres/indexes.txt | 11 ++++++++++- docs/releases/5.1.txt | 3 ++- docs/spelling_wordlist | 1 + 3 files changed, 13 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/ref/contrib/postgres/indexes.txt b/docs/ref/contrib/postgres/indexes.txt index 5dfbef5c4c..73ef195309 100644 --- a/docs/ref/contrib/postgres/indexes.txt +++ b/docs/ref/contrib/postgres/indexes.txt @@ -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`` ============ diff --git a/docs/releases/5.1.txt b/docs/releases/5.1.txt index 539ff566a3..f949b31ad2 100644 --- a/docs/releases/5.1.txt +++ b/docs/releases/5.1.txt @@ -63,7 +63,8 @@ Minor features :mod:`django.contrib.postgres` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* ... +* :class:`~django.contrib.postgres.indexes.BTreeIndex` now supports the + ``deduplicate_items`` parameter. :mod:`django.contrib.redirects` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/docs/spelling_wordlist b/docs/spelling_wordlist index c217719a8a..5828b24253 100644 --- a/docs/spelling_wordlist +++ b/docs/spelling_wordlist @@ -119,6 +119,7 @@ datetimes declaratively decrementing deduplicates +deduplication deepcopy deferrable deprecations -- cgit v1.3