From 6b4d1ec8ff97cff4f1683912b0147d22410b05b8 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Mon, 30 Jul 2018 23:28:11 +0100 Subject: Fixed #29614 -- Added BTreeIndex to django.contrib.postres. --- docs/ref/contrib/postgres/indexes.txt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'docs/ref') diff --git a/docs/ref/contrib/postgres/indexes.txt b/docs/ref/contrib/postgres/indexes.txt index cb0decc9a1..ef19384fb8 100644 --- a/docs/ref/contrib/postgres/indexes.txt +++ b/docs/ref/contrib/postgres/indexes.txt @@ -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`` ============ -- cgit v1.3