agora inbox for pgsql-sql@postgresql.org  
help / color / mirror / Atom feed
From: sad <sad@bankir.ru>
To: Pgsql-Sql <pgsql-sql@postgresql.org>
Subject: Re: recursive sql
Date: Sat, 6 Sep 2003 09:05:02 +0400
Message-ID: <200309060905.02921.sad@bankir.ru> (raw)
In-Reply-To: <NDBBKEGJICMIMJHJEBCOKEEOGOAA.floyds@4peakstech.com>
References: <NDBBKEGJICMIMJHJEBCOKEEOGOAA.floyds@4peakstech.com>

Good day

On Friday 05 September 2003 21:41, you wrote:
> can anyone recommend a good reference source for doing recursive sql on
> postgresql? i want to do something similar to a BOM expansion. (i.e. i need
> to traverse a self-referencing table that stores a tree structure and
> answer a question like "Get me A and all of A's descendents")

"recursive queries" are much slower than queries to a nested-tree.
please find something readable on subject "nested-tree" or ask me to
send you this. You'll see that the maintaining of a nested-tree is
covered by its good profit.




view thread (16+ messages)  latest in thread

Message-ID: <200309060905.02921.sad@bankir.ru>
Permalink:  ../200309060905.02921.sad@bankir.ru/
Also on:    postgresql.org/message-id/200309060905.02921.sad@bankir.ru

reply

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: recursive sql
  In-Reply-To: <200309060905.02921.sad@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 agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox