From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Jeff Davis <pgsql(at)j-davis(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: small exclusion constraints patch |
Date: | 2010-05-21 19:24:35 |
Message-ID: | 22686.1274469875@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> Currently, the check for exclusion constraints performs a sanity check
> that's slightly too strict -- it assumes that a tuple will conflict with
> itself. That is not always the case: the operator might be "<>", in
> which case it's perfectly valid for the search for conflicts to not find
> itself.
> This patch simply removes that sanity check, and leaves a comment in
> place.
I'm a bit uncomfortable with removing the sanity check; it seems like a
good thing to have, especially since this code hasn't even made it out
of beta yet. AFAIK the "<>" case is purely hypothetical, because we
have no index opclasses supporting such an operator, no? How about just
documenting that we'd need to remove the sanity check if we ever did add
support for such a case?
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2010-05-21 19:36:50 | Re: Specification for Trusted PLs? |
Previous Message | Greg Sabino Mullane | 2010-05-21 19:22:00 | Re: changed source files. |