| От | Tom Lane |
|---|---|
| Тема | Re: Sorting with materialized paths |
| Дата | |
| Msg-id | 4000.1273420056@sss.pgh.pa.us обсуждение |
| Ответ на | Sorting with materialized paths (Ovid <curtis_ovid_poe@yahoo.com>) |
| Ответы |
Re: Sorting with materialized paths
|
| Список | pgsql-general |
Ovid <curtis_ovid_poe@yahoo.com> writes:
> My apologies. This isn't PG-specific, but since this is running on PostgreSQL 8.4, maybe there are specific features
whichmight help.
> I have a tree structure in a table and it uses materialized paths to allow me to find children quickly. However, I
alsoneed to sort the results depth-first, as one would expect with threaded forum replies.
I think contrib/ltree might help you here. However, it seems to sort
node names textually rather than numerically, so you might need to
change it a bit for your own purposes.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера