Re: CTE bug? - Mailing list pgsql-hackers

From Tom Lane
Subject Re: CTE bug?
Date
Msg-id 5491.1252524367@sss.pgh.pa.us
Whole thread Raw
In response to Re: CTE bug?  (David Fetter <david@fetter.org>)
List pgsql-hackers
David Fetter <david@fetter.org> writes:
> On Wed, Sep 09, 2009 at 03:00:39PM -0400, Tom Lane wrote:
>> David Fetter <david@fetter.org> writes:
>>> Should the outer query be able to reference further-in CTEs?
>> 
>> No, why would you expect that?

> No particular reason, I suppose.  I'm not clear on what the standard
> says about this.

The standard says that the scope of a WITH is the <query expression
body> it precedes.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: RfD: more powerful "any" types
Next
From: Alvaro Herrera
Date:
Subject: Re: RfD: more powerful "any" types