Re: Multiple recursive part possible?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Svenne Krap <svenne(dot)lists(at)krap(dot)dk>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Multiple recursive part possible?
Date: 2011-05-01 22:12:29
Message-ID: 26285.1304287949@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Svenne Krap <svenne(dot)lists(at)krap(dot)dk> 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

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Svenne Krap 2011-05-02 03:18:17 Re: Multiple recursive part possible?
Previous Message Svenne Krap 2011-05-01 19:45:24 Multiple recursive part possible?