Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Sql > Re: Index to en...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 3457 of 3799
Post > Topic >>

Re: Index to enforce non-overlapping ranges?

by tgl@[EMAIL PROTECTED] (Tom Lane) May 8, 2008 at 10:54 AM

James Robinson <jlrobins@[EMAIL PROTECTED]
> writes:
> 	Given a table with a pair of any sort of line-segment-esqe range  
> delimiter columns, is it possible to build a unique index to enforce  
> non-overlapping ranges?

Nope, sorry.  Unique indexes enforce non-equality, but there's no way
to pretend that "overlaps" is an equality condition (hint: it's not
transitive).

I don't say that it'd be impossible to construct an index type that
could do this, but you won't get there with the pieces we have.

			regards, tom lane

-- 
Sent via pgsql-sql mailing list (pgsql-sql@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
 




 3 Posts in Topic:
Index to enforce non-overlapping ranges?
jlrobins@[EMAIL PROTECTED  2008-05-08 09:27:52 
Re: Index to enforce non-overlapping ranges?
tgl@[EMAIL PROTECTED] (T  2008-05-08 10:54:21 
Re: Index to enforce non-overlapping ranges?
Chris Browne <cbbrowne  2008-05-08 10:31:25 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Dec 2 21:49:44 CST 2008.