Re: Table Design for Hierarchical Data

From: Yeb Havinga <yebhavinga(at)gmail(dot)com>
To: Achilleas Mantzios <achill(at)matrix(dot)gatewaynet(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Table Design for Hierarchical Data
Date: 2010-04-08 07:40:35
Message-ID: 4BBD8873.5040003@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Achilleas Mantzios wrote:
> Στις Wednesday 07 April 2010 23:33:07 ο/η Yeb Havinga έγραψε:
>
>> Achilleas Mantzios wrote:
>>
>>> Στις Wednesday 07 April 2010 11:06:44 ο/η Yeb Havinga έγραψε:
>>>
>>>
>>>> Achilleas Mantzios wrote:
>>>>
>>>>
>>>>> You could also consider the genealogical approach, e.g.
>>>>>
>>>>>
>>>>> The parents of any node to the root, i.e. the path of any node to the root are depicted as
>>>>> parents[0] : immediate parent
>>>>> parents[1] : immediate parent of the above parent
>>>>>
>>>>>
>>>>>
>>>> What I have more than one parent?
>>>>
>>>>
>>> Then it is no longer neither a tree, nor a hierarchical structure, but rather a graph.
>>> This a totally different problem.
>>>
>>>
>> My question was actually an attempt to point at the inability of what
>> you call the 'genealogical approach' database design to store
>> information of more than one parent.
>>
>
>
> Are you suggesting that we should change our definition of trees ADT, just because it does not
> fit the mere detail that humans have two parents?
> Or are you just suggesting that the "genealogical" term is inaccurate?
>
The latter, but rethinking it, why would genealogical be a bad word when
applied to graph algorithm 'stuff' when words like parent, child,
ancestor, sibling are common use. When I read 'genealogical' I had only
the connotation 'family relations' in mind. I suspect that if looking at
the definition of the word genealogy alone, it could very well include
the study of single parent transitive relationships. However, not
exclusively, so yes, IMHO something called the genealogical approach
should not preclude polyhierarchies.

regards
Yeb Havinga

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Kellerer 2010-04-08 08:54:36 Problem with function returning a result set
Previous Message Achilleas Mantzios 2010-04-08 06:56:06 Re: Table Design for Hierarchical Data