Re: CTE bug?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: David Fetter <david(at)fetter(dot)org>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: CTE bug?
Date: 2009-09-09 19:26:07
Message-ID: 5491.1252524367@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

David Fetter <david(at)fetter(dot)org> writes:
> On Wed, Sep 09, 2009 at 03:00:39PM -0400, Tom Lane wrote:
>> David Fetter <david(at)fetter(dot)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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2009-09-09 19:36:06 Re: RfD: more powerful "any" types
Previous Message Tom Lane 2009-09-09 19:23:52 Re: RfD: more powerful "any" types