From d61838761f17d7c934c7be288fadfa14f471b598 Mon Sep 17 00:00:00 2001 From: Haki Benita Date: Thu, 25 Dec 2025 11:42:58 +0200 Subject: Fixed #36827 -- Added support for exclusion constraints using Hash indexes on PostgreSQL. --- docs/ref/contrib/postgres/constraints.txt | 10 +++++++--- docs/releases/6.1.txt | 3 +++ 2 files changed, 10 insertions(+), 3 deletions(-) (limited to 'docs') 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` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -- cgit v1.3