Re: operator exclusion constraints - Mailing list pgsql-hackers

From Jeff Davis
Subject Re: operator exclusion constraints
Date
Msg-id 1257285914.25534.76.camel@monkey-cat.sm.truviso.com
Whole thread Raw
In response to Re: operator exclusion constraints  (Dean Rasheed <dean.a.rasheed@googlemail.com>)
Responses Re: operator exclusion constraints
List pgsql-hackers
On Tue, 2009-11-03 at 21:31 +0000, Dean Rasheed wrote:
> Is this really a generalized uniqueness constraint, extended to
> support operators other than = ?

That has been discussed in the past:

http://archives.postgresql.org/message-id/1253119552.24770.203.camel@jdavis
http://archives.postgresql.org/message-id/1253122946.24770.250.camel@jdavis

However, some constraints allowed by this feature are the *opposite* of
unique: consider "<>".

Personally, I don't like to use the word UNIQUE to describe a constraint
that may reject unique values or permit duplicates.

We already have some reasonable agreement around EXCLUSION ... CHECK
WITH. We should stick with the current syntax unless there's a good
consensus around some other specific proposal.

Regards,Jeff Davis



pgsql-hackers by date:

Previous
From: Dean Rasheed
Date:
Subject: Re: operator exclusion constraints
Next
From: daveg
Date:
Subject: Re: EOL for 7.4?