Re: Hierarchical numeric data type - Mailing list pgsql-general

From Chris Travers
Subject Re: Hierarchical numeric data type
Date
Msg-id CAKt_ZfundccbWMWwXssD8VnVy_DsboJMdVkWxFmzR8CWdYjq6g@mail.gmail.com
Whole thread Raw
In response to Re: Hierarchical numeric data type  (Sergey Konoplev <gray.ru@gmail.com>)
List 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 by date:

Previous
From: Vishalakshi Navaneethakrishnan
Date:
Subject: How to avoid Force Autovacuum
Next
From: Sameer Thakur
Date:
Subject: Populating array of composite datatype