Re: uniquely indexing Celko's nested set model - Mailing list pgsql-general

From Richard Broersma Jr
Subject Re: uniquely indexing Celko's nested set model
Date
Msg-id 463043.27108.qm@web31812.mail.mud.yahoo.com
Whole thread Raw
In response to Re: uniquely indexing Celko's nested set model  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-general
--- On Fri, 10/19/07, Scott Marlowe <scott.marlowe@gmail.com> wrote:
> > Is it possible to constraint both the LEFT and RIGHT
> > fields of a record to use the same index?  I am looking for
> > a way to ensure for all LEFTs and RIGHTs in a table, that is
> > it is impossible for any LEFT or RIGHT to have to same
> > value.

> a check constraint ought to do it

True, but how do I insure that one record's left does not equal another record's right?

Regards,
Richard Broersma Jr.

pgsql-general by date:

Previous
From: Steve Atkins
Date:
Subject: Re: uniquely indexing Celko's nested set model
Next
From: Michael Glaesemann
Date:
Subject: Re: uniquely indexing Celko's nested set model