Re: Combining several CTEs with a recursive CTE

From: David Johnston <polobo(at)yahoo(dot)com>
To: Thomas Kellerer <spam_eater(at)gmx(dot)net>
Cc: "pgsql-sql(at)postgresql(dot)org" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Combining several CTEs with a recursive CTE
Date: 2011-09-20 14:15:01
Message-ID: 1E5EC0E1-13DB-4346-B8EE-212F4DC4CCEA@yahoo.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Sep 20, 2011, at 5:58, Thomas Kellerer <spam_eater(at)gmx(dot)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.

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Thomas Kellerer 2011-09-20 14:54:28 Re: Combining several CTEs with a recursive CTE
Previous Message Thomas Kellerer 2011-09-20 09:58:20 Combining several CTEs with a recursive CTE