X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 420D5CC8A1 for ; Thu, 17 Jul 2003 06:44:09 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 84970-08 for ; Thu, 17 Jul 2003 06:44:15 +0000 (GMT) Received: from neptune.adelis.net (neptune.adelis.net [195.115.171.102]) by svr1.postgresql.org (Postfix) with ESMTP id 3DCA9CC859 for ; Thu, 17 Jul 2003 03:43:47 -0300 (ADT) Received: from icqmail.com (ben.adelis.net [195.115.171.16]) by neptune.adelis.net (Postfix) with ESMTP id ECEA37920E for ; Thu, 17 Jul 2003 08:36:19 +0200 (CEST) Message-ID: <3F1645BF.908@icqmail.com> Date: Thu, 17 Jul 2003 08:44:15 +0200 From: BenLaKnet User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.2.1) Gecko/20030225 X-Accept-Language: fr, en-us, en, ja MIME-Version: 1.0 Cc: pgsql-sql@postgresql.org Subject: Re: Recursive request ... References: <3F0C3469.2050106@adelis.com> <200307131217.02856.mallah@trade-india.com> In-Reply-To: <200307131217.02856.mallah@trade-india.com> Content-Type: multipart/alternative; boundary="------------030803060806040506040902" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/210 X-Sequence-Number: 14324 --------------030803060806040506040902 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit I see connect by in Oracle ??? is there an equivalent in PostgreSQL or not ?? Rajesh Kumar Mallah a écrit: >Dear Bournon, > >There are already good implementation of Tree >structures in databases ranging from using pure SQL >to PostgreSQL specfic methods , less point in >revinting wheel unless u really need. > >Some Pointers: > >"Tree-structure functions" >http://www.brasileiro.net:8080/postgres/cookbook/ > > >Gist Based: >contrib/ltree > > >Joe Celko's Article on "Nested Sets & Adjacency Lists" > >http://www.ibase.ru/devinfo/DBMSTrees/sqltrees.html >http://users.starpower.net/rjhalljr/Serve/MySQL/traer.html >http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=adjacency+list+%2B+tree+%2B+joe > > > >On Wednesday 09 Jul 2003 8:57 pm, Benoît Bournon wrote: > > >>I have to make a function that returns a tree with title and link of a >>table. >> >>Recursively, a information depends on a parent information. >> >>It is to organise a menu with parent dependance. >> >>How is it possible and faster ? in C ? pl/pgsql or other ? >> >> >>---------------------------(end of broadcast)--------------------------- >>TIP 4: Don't 'kill -9' the postmaster >> >> > > >---------------------------(end of broadcast)--------------------------- >TIP 4: Don't 'kill -9' the postmaster > > > --------------030803060806040506040902 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit I see connect by in Oracle


??? is there an equivalent in PostgreSQL or not ??



Rajesh Kumar Mallah a écrit:
Dear Bournon,

There are already good implementation of Tree
structures in databases ranging from using pure SQL
to PostgreSQL specfic methods , less point in 
revinting wheel unless u really need.

Some Pointers:

"Tree-structure functions"
http://www.brasileiro.net:8080/postgres/cookbook/


Gist Based:
contrib/ltree


Joe Celko's Article on "Nested Sets & Adjacency Lists"

http://www.ibase.ru/devinfo/DBMSTrees/sqltrees.html
http://users.starpower.net/rjhalljr/Serve/MySQL/traer.html
http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=adjacency+list+%2B+tree+%2B+joe



On Wednesday 09 Jul 2003 8:57 pm, Benoît Bournon wrote:
  
I have to make a function that returns a tree with title and link of a
table.

Recursively, a information depends on a parent information.

It is to organise a menu with parent dependance.

How is it possible and faster  ? in C ? pl/pgsql or other ?


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster
    


---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster

  
--------------030803060806040506040902--