X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 437019DCB67 for ; Tue, 14 Mar 2006 07:45:36 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 12585-07 for ; Tue, 14 Mar 2006 07:45:38 -0400 (AST) Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 98C8B9DCB46 for ; Tue, 14 Mar 2006 07:45:33 -0400 (AST) Received: from achille.dalibo.net (achille.dalibo.net [212.85.153.230]) by svr4.postgresql.org (Postfix) with ESMTP id 00BF75AF089 for ; Tue, 14 Mar 2006 11:45:36 +0000 (GMT) Received: from localhost (localhost.localdomain [127.0.0.1]) by achille.dalibo.net (Postfix) with ESMTP id F271715F73; Tue, 14 Mar 2006 12:38:11 +0100 (CET) Received: from achille.dalibo.net ([127.0.0.1]) by localhost (achille [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09605-02; Tue, 14 Mar 2006 12:38:11 +0100 (CET) Received: from [192.168.0.1] (maison.argudo.org [81.56.190.65]) by achille.dalibo.net (Postfix) with ESMTP id 9DAF215F5D; Tue, 14 Mar 2006 12:38:10 +0100 (CET) Message-ID: <4416ACE1.5040207@argudo.org> Date: Tue, 14 Mar 2006 12:45:37 +0100 From: Jean-Paul Argudo User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en MIME-Version: 1.0 To: Daniel Caune Cc: Michael Fuhr , lucius.seneca@gmail.com, postgresql sql list Subject: Re: connectby documentation References: <1E293D3FF63A3740B10AD5AAD88535D201C6B1BF@UBIMAIL1.ubisoft.org> In-Reply-To: <1E293D3FF63A3740B10AD5AAD88535D201C6B1BF@UBIMAIL1.ubisoft.org> X-Enigmail-Version: 0.93.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at dalibo.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.096 required=5 tests=[AWL=0.096] X-Spam-Score: 0.096 X-Spam-Level: X-Archive-Number: 200603/218 X-Sequence-Number: 24564 Daniel Caune a écrit : > Wow, that was the quest for the Holy Grail! :-) Yes I understand. That kind of documentation for a contrib-addon-whatever for PostgreSQL can be tricky sometimes to find.. I just jump on that thread to place a reminder for all those wanting to implement trees in databases, just in case they are still thinking about howto do that. I wroted an article on that topic (in french only sorry : http://www.postgresqlfr.org/?q=node/142), where I compare id/parent_id, nested loops and Miguel Sofer's method. This method is explained on OpenACS forums (in english) http://openacs.org/forums/message-view?message_id=18365 The original work of Miguel Sofer (with a PostgreSQL implementation as an example) can be found here: http://www.utdt.edu/~mig/sql-trees/ Be sure to download the tar.gz. on the like "here"... and read his draft. I'm really convinced this method is the best so far. I used it in 3 different projects where I had to implement big trees structures on a table. They all still work with no problem of any kind. Just to let you know in case you missed that ;-) My 2 ¢ -- Jean-Paul Argudo www.Argudo.org www.PostgreSQLFr.org