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 29824,Add support for EXCLUDE USING constraint,Mads Jensen,Mads Jensen,"A lot of work was done to add the check constraint to Django 2.2. On top of such a constraint, PostgreSQL has an exclusion constraint that works well on ranges, regardless if they're represented using two fields, or a single field using a range-type. Essentially, this constraint enforces a unique constraint for ranges, with a possibility for an additional check. https://github.com/tbicr/django-pg-zero-downtime-migrations/ uses `ALTER TABLE %(table)s VALIDATE CONSTRAINT` to restrict how long the table is locked for writing. I was contemplating to touch this subject in the patch. [https://github.com/django/django/pull/10478 PR]",New feature,closed,contrib.postgres,dev,Normal,fixed,constraints postgres,,Ready for checkin,1,0,0,0,0,0