X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2461C3A581B for ; Tue, 25 Jan 2005 19:36:51 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 09700-09 for ; Tue, 25 Jan 2005 19:36:44 +0000 (GMT) Received: from sunsite.dcc.uchile.cl (sunsite.dcc.uchile.cl [192.80.24.2]) by svr1.postgresql.org (Postfix) with ESMTP id DCC393A5769 for ; Tue, 25 Jan 2005 19:36:40 +0000 (GMT) Received: from anakena.dcc.uchile.cl ([192.80.24.3]) by sunsite.dcc.uchile.cl (8.12.11/8.12.11) with ESMTP id j0PJaVvf026520; Tue, 25 Jan 2005 16:36:34 -0300 (CLST) Received: by anakena.dcc.uchile.cl (Postfix, from userid 4151) id B9559530E9; Tue, 25 Jan 2005 16:36:31 -0300 (CLST) Date: Tue, 25 Jan 2005 16:36:31 -0300 From: Alvaro Herrera To: tmp , pgsql-general@postgresql.org Subject: Re: Recursive queries Message-ID: <20050125193631.GA15811@dcc.uchile.cl> References: <20050125185833.GK29308@svana.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20050125185833.GK29308@svana.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.334 tagged_above=0 required=5 tests=AWL, DNS_FROM_RFC_ABUSE X-Spam-Level: X-Archive-Number: 200501/1410 X-Sequence-Number: 72359 On Tue, Jan 25, 2005 at 07:58:33PM +0100, Martijn van Oosterhout wrote: > On Mon, Jan 24, 2005 at 05:27:46PM +0100, tmp wrote: > > Are there any plans on implementing support for recursive queries in > > postgresql in the near future? If so: When? > > > > I can see there has been some discussion on the subject in the > > developer-group for quite some time ago, but aparently all thoughts of > > recursive queries has been stalled. :-( > > What do you mean by resursive queries? A query can have a subquery > which calls a function which executes another query. That counts as > recursion in my book. What type of recursion are you thinking of? The WITH clause in SQL2003 AFAIR (maybe earlier ones as well). -- Alvaro Herrera () "Ellos andaban todos desnudos como su madre los parió, y también las mujeres, aunque no vi más que una, harto moza, y todos los que yo vi eran todos mancebos, que ninguno vi de edad de más de XXX años" (Cristóbal Colón)