﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31709	Support operator classes for exclusion constraints.	Hannes Ljungberg	Hannes Ljungberg	"`ExclusionConstraint` should allow setting `opclasses` just like `Index`:
{{{
class Meta:
    constraints = [
        ExclusionConstraint(
            name='exclude_overlapping'',
            expressions=[('circle', RangeOperators.OVERLAPS),
            opclasses=['circle_ops'],
        )
    ]
}}}

There are not many choices over the default operator classes on GiST and SP-GiST indexes. I think the only one is for `point` where one can choose between  `quad_point_ops` and `kd_point_ops`. But users can also create custom operator classes. I think it makes sense to also provide this option on `ExclusionConstraint` for consistency.

I've also created https://code.djangoproject.com/ticket/31702 to add `opclasses` to `UniqueConstraint`."	New feature	closed	contrib.postgres	dev	Normal	fixed			Accepted	1	0	0	0	0	0
