From: David Johnston <polobo@yahoo.com>
To: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: Re: Combining several CTEs with a recursive CTE
Date: Tue, 20 Sep 2011 10:15:01 -0400
Message-ID: <1E5EC0E1-13DB-4346-B8EE-212F4DC4CCEA@yahoo.com> (raw)
In-Reply-To: <j59o2m$dn1$1@dough.gmane.org>
References: <j59o2m$dn1$1@dough.gmane.org>
On Sep 20, 2011, at 5:58, Thomas Kellerer <spam_eater@gmx.net> wrote:
>
> I'm just wondering if this is intended behavioury, simply not (yet) implemented or even invalid according to the standard? I didn't find any reference that it's not allowed in the manual.
>
> Regards
> Thomas
>
>
Try sticking the recursive keyword after the "with" if any of the following CTEs are recursive.
WITH RECURSIVE
normal1 AS ()
,recursine1 AS ()
,normal2 AS ()
,recursine2 AS ()
SELECT ...
David J.=
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: polobo@yahoo.com, spam_eater@gmx.net
Subject: Re: Combining several CTEs with a recursive CTE
In-Reply-To: <1E5EC0E1-13DB-4346-B8EE-212F4DC4CCEA@yahoo.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox