Re: Hierarchical numeric data type

Поиск
Список
Период
Сортировка
От Chris Travers
Тема Re: Hierarchical numeric data type
Дата
Msg-id CAKt_ZfundccbWMWwXssD8VnVy_DsboJMdVkWxFmzR8CWdYjq6g@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Hierarchical numeric data type  (Sergey Konoplev <gray.ru@gmail.com>)
Список pgsql-general
This depends on exactly what you need.  In the end usually you are going to want to convert things into integer arrays.

In LedgerSMB we use integers and foreign keys to handle hierarchies, and then convert them to int arrays via WITH RECURSIVE CTE's and text strings .

This is one of those things where hierarchical data design can depend heavily on the use case.


--
Best Wishes,
Chris Travers

Efficito:  Hosted Accounting and ERP.  Robust and Flexible.  No vendor lock-in.

В списке pgsql-general по дате отправления:

Предыдущее
От: Vishalakshi Navaneethakrishnan
Дата:
Сообщение: How to avoid Force Autovacuum
Следующее
От: Sameer Thakur
Дата:
Сообщение: Populating array of composite datatype