Re: uniquely indexing Celko's nested set model

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Scott Marlowe <scott(dot)marlowe(at)gmail(dot)com>
Cc: General PostgreSQL List <pgsql-general(at)postgresql(dot)org>
Subject: Re: uniquely indexing Celko's nested set model
Date: 2007-10-20 03:14:00
Message-ID: 463043.27108.qm@web31812.mail.mud.yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

--- On Fri, 10/19/07, Scott Marlowe <scott(dot)marlowe(at)gmail(dot)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.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Glaesemann 2007-10-20 03:15:45 Re: uniquely indexing Celko's nested set model
Previous Message Steve Atkins 2007-10-20 03:09:07 Re: uniquely indexing Celko's nested set model