Re: WITH ... VALUES

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff Davis <pgsql(at)j-davis(dot)com>
Cc: pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: WITH ... VALUES
Date: 2010-02-12 22:39:22
Message-ID: 6492.1266014362@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Jeff Davis <pgsql(at)j-davis(dot)com> writes:
> On Fri, 2010-02-12 at 16:59 -0500, Tom Lane wrote:
>> AFAICT there isn't any actual use case for this because you can't
>> reference the WITH clause from the body of VALUES:

> with tmp2 as (select a + 1 as b from tmp)
> values((select b from tmp2));

Ah, sneaky. Never mind that then.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Jeff Davis 2010-02-12 22:40:00 Re: Confusion over Python drivers {license}
Previous Message Jeff Davis 2010-02-12 22:27:38 Re: WITH ... VALUES