Re: uniquely indexing Celko's nested set model

Поиск
Список
Период
Сортировка
От Richard Broersma Jr
Тема Re: uniquely indexing Celko's nested set model
Дата
Msg-id 463043.27108.qm@web31812.mail.mud.yahoo.com
обсуждение исходный текст
Ответ на Re: uniquely indexing Celko's nested set model  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Список 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 по дате отправления:

Предыдущее
От: Steve Atkins
Дата:
Сообщение: Re: uniquely indexing Celko's nested set model
Следующее
От: Michael Glaesemann
Дата:
Сообщение: Re: uniquely indexing Celko's nested set model