Re: Exclusion Constraints on Arrays?

From: "David E(dot) Wheeler" <david(at)justatheory(dot)com>
To: Robert Haas <robertmhaas(at)gmail(dot)com>
Cc: Peter Geoghegan <peter(at)2ndquadrant(dot)com>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Exclusion Constraints on Arrays?
Date: 2012-05-23 17:38:33
Message-ID: 53A5174B-13D6-411B-9F5A-1EEF312D2EE2@justatheory.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On May 23, 2012, at 10:35 AM, Robert Haas wrote:

>> "Exclusion constraints generalize uniqueness constraints by allowing
>> arbitrary comparison operators, not just equality....This is useful
>> for time periods and other ranges, as well as arrays."
>
> I objected to it at the time, but lost the argument.

It does rather seem to be a mistake to say that they can be used with arrays when they cannot. Or can they in some other way I haven’t noticed?

David

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Janes 2012-05-23 18:00:00 Re: Add primary key/unique constraint using prefix columns of an index
Previous Message Robert Haas 2012-05-23 17:35:24 Re: Exclusion Constraints on Arrays?