Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 9025A1336FA7 for ; Sun, 1 May 2011 19:12:39 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 05328-09 for ; Sun, 1 May 2011 22:12:32 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 0F1CE13364DE for ; Sun, 1 May 2011 19:12:30 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p41MCTNV026286; Sun, 1 May 2011 18:12:29 -0400 (EDT) To: Svenne Krap cc: pgsql-sql@postgresql.org Subject: Re: Multiple recursive part possible? In-reply-to: <4DBDB854.1010400@krap.dk> References: <4DBDB854.1010400@krap.dk> Comments: In-reply-to Svenne Krap message dated "Sun, 01 May 2011 21:45:24 +0200" Date: Sun, 01 May 2011 18:12:29 -0400 Message-ID: <26285.1304287949@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/2 X-Sequence-Number: 35286 Svenne Krap writes: > The two recursive parts seems to do the right thing each on its own, but > together i get an error... > with recursive downpath as ( > [ something ] > ), > with recursive uppath as ( > [ something ] > ) > select ... Leave out the second "with recursive". WITH introduces a list of name-AS-subselect clauses, not just one. regards, tom lane