diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/contrib/postgres/constraints.txt | 10 | ||||
| -rw-r--r-- | docs/releases/6.1.txt | 3 |
2 files changed, 10 insertions, 3 deletions
diff --git a/docs/ref/contrib/postgres/constraints.txt b/docs/ref/contrib/postgres/constraints.txt index ee8ef02aa2..29083c0b6b 100644 --- a/docs/ref/contrib/postgres/constraints.txt +++ b/docs/ref/contrib/postgres/constraints.txt @@ -73,9 +73,13 @@ creates an exclusion constraint on ``circle`` using ``circle_ops``. .. attribute:: ExclusionConstraint.index_type -The index type of the constraint. Accepted values are ``GIST`` or ``SPGIST``. -Matching is case insensitive. If not provided, the default index type is -``GIST``. +The index type of the constraint. Accepted values are ``GiST``, ``Hash``, or +``SPGiST``. Matching is case insensitive. If not provided, the default index +type is ``GIST``. + +.. versionchanged:: 6.1 + + Support for exclusion constraints using Hash indexes was added. ``condition`` ------------- diff --git a/docs/releases/6.1.txt b/docs/releases/6.1.txt index c4ecefc08a..b5b47a11d8 100644 --- a/docs/releases/6.1.txt +++ b/docs/releases/6.1.txt @@ -135,6 +135,9 @@ Minor features :class:`~django.contrib.postgres.fields.HStoreField` when ``psycopg`` 3.2+ is installed and ``django.contrib.postgres`` is in :setting:`INSTALLED_APPS`. +* :class:`~django.contrib.postgres.constraints.ExclusionConstraint` now + supports the Hash index type. + :mod:`django.contrib.redirects` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
