X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id 85DE4CC039 for ; Thu, 10 Jul 2003 07:49:49 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 56438-08 for ; Thu, 10 Jul 2003 04:49:16 -0300 (ADT) Received: from sfpop.smtp.stsn.com (p32.n-sfpop03.stsn.com [199.107.154.32]) by svr1.postgresql.org (Postfix) with ESMTP id 33656CBF75 for ; Thu, 10 Jul 2003 04:49:16 -0300 (ADT) Received: from joeconway.com ([10.4.203.84]) by sfpop.smtp.stsn.com with Microsoft SMTPSVC(5.0.2195.5329); Wed, 9 Jul 2003 00:53:21 -0700 Message-ID: <3F0D1977.5060300@joeconway.com> Date: Thu, 10 Jul 2003 00:44:55 -0700 From: Joe Conway User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: =?ISO-8859-1?Q?Beno=EEt_Bournon?= Cc: pgsql-sql@postgresql.org Subject: Re: Recursive request ... References: <3F0C3469.2050106@adelis.com> In-Reply-To: <3F0C3469.2050106@adelis.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 09 Jul 2003 07:53:21.0093 (UTC) FILETIME=[2A9CDF50:01C345EF] X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/125 X-Sequence-Number: 14239 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 ? > On 7.3 and later: see contrib/tablefunc. The function is called connectby(). HTH, Joe