| От | Alban Hertroys |
|---|---|
| Тема | Re: Categories and Sub Categories (Nested) |
| Дата | |
| Msg-id | 444757BA.9020704@magproductions.nl обсуждение |
| Ответ на | Re: Categories and Sub Categories (Nested) ("Ian Harding" <iharding@destinydata.com>) |
| Список | pgsql-general |
Ian Harding wrote:
> You should look up the contrib module ltree which is made for this
> sort of thing. If you reinvent the wheel like this, you will be stuck
> with 2 levels. With ltree you can have as many as you need and add
> more at any time. It lets you query for ancestors and descendants of
> any item at any level.
>
> I highly recommend it.
Ah, one of those modules I still need to investigate. It looks promising.
Can it do networked structures? That'd be kind of hard with an index on
a path when a node can have multiple parent nodes, I figure...
--
Alban Hertroys
alban@magproductions.nl
magproductions b.v.
T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede
// Integrate Your World //
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера