From: silly sad <sad@bankir.ru>
To: pgsql-sql@postgresql.org
Subject: Re: Cascading sum in tree with CTE?
Date: Fri, 09 Apr 2010 13:12:56 +0400
Message-ID: <4BBEEF98.301@bankir.ru> (raw)
In-Reply-To: <4BBED49D.7080501@krap.dk>
References: <4BBED49D.7080501@krap.dk>
to select a whole subtree of a particular node of a tree.
u have to modify the tree representation in one of the two ways
(according to you fine-tuned needs)
(1) store in the EACH node the PATH from root to this node
(2) store (l,r) segment representing the INCLUSIONS of nodes into other
nodes subtree (exactly as segments include each other)
(2) i forgot the "official" name of this type of tree representation.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: sad@bankir.ru
Subject: Re: Cascading sum in tree with CTE?
In-Reply-To: <4BBEEF98.301@bankir.ru>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox