From 23ec318988cb22bef176b9d81e4091715a4f41ff Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Thu, 12 Jan 2023 13:20:08 +0100 Subject: Refs #33342 -- Removed ExclusionConstraint.opclasses per deprecation timeline. --- docs/ref/contrib/postgres/constraints.txt | 28 +--------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'docs/ref') diff --git a/docs/ref/contrib/postgres/constraints.txt b/docs/ref/contrib/postgres/constraints.txt index 5c50ddd3a5..fcf50b8b5f 100644 --- a/docs/ref/contrib/postgres/constraints.txt +++ b/docs/ref/contrib/postgres/constraints.txt @@ -12,7 +12,7 @@ PostgreSQL supports additional data integrity constraints available from the ``ExclusionConstraint`` ======================= -.. class:: ExclusionConstraint(*, name, expressions, index_type=None, condition=None, deferrable=None, include=None, opclasses=(), violation_error_message=None) +.. class:: ExclusionConstraint(*, name, expressions, index_type=None, condition=None, deferrable=None, include=None, violation_error_message=None) Creates an exclusion constraint in the database. Internally, PostgreSQL implements exclusion constraints using indexes. The default index type is @@ -133,32 +133,6 @@ used for queries that select only included fields ``include`` is supported for GiST indexes. PostgreSQL 14+ also supports ``include`` for SP-GiST indexes. -``opclasses`` -------------- - -.. attribute:: ExclusionConstraint.opclasses - -The names of the `PostgreSQL operator classes -`_ to use for -this constraint. If you require a custom operator class, you must provide one -for each expression in the constraint. - -For example:: - - ExclusionConstraint( - name='exclude_overlapping_opclasses', - expressions=[('circle', RangeOperators.OVERLAPS)], - opclasses=['circle_ops'], - ) - -creates an exclusion constraint on ``circle`` using ``circle_ops``. - -.. deprecated:: 4.1 - - The ``opclasses`` parameter is deprecated in favor of using - :class:`OpClass() ` in - :attr:`~ExclusionConstraint.expressions`. - ``violation_error_message`` --------------------------- -- cgit v1.3