Skip site navigation (1) Skip section navigation (2)

Re: non-recursive WITH clause support

From: Bruce Momjian <bruce(at)momjian(dot)us>
To: Gregory Stark <stark(at)enterprisedb(dot)com>
Cc: pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: non-recursive WITH clause support
Date: 2007-04-02 20:45:07
Message-ID: (view raw or whole thread)
Lists: pgsql-patches
Your patch has been added to the PostgreSQL unapplied patches list at:

It will be applied as soon as one of the PostgreSQL committers reviews
and approves it.


Gregory Stark wrote:
> Here's an updated patch that fixes the bug I had. This is now functional basic
> non-recursive WITH clause support.
> It's a pretty short simple patch as is; it just directly inlines any WITH
> clauses as if they had been written as subqueries. We'll have to do something
> much more clever to get recursive queries to work but for non-recursive
> queries that's sufficient.
> Example:
> postgres=# with a as (select 1 as x) select * from (select * from a) as x;
>  x 
> ---
>  1
> (1 row)
> -- 
>   Gregory Stark
>   EnterpriseDB
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?

  Bruce Momjian  <bruce(at)momjian(dot)us>

  + If your life is a hard drive, Christ can be your backup. +

In response to

pgsql-patches by date

Next:From: Bruce MomjianDate: 2007-04-02 20:59:08
Subject: Re: [PATCHES] Use non-deprecated APIs for dynloader/darwin.c
Previous:From: Bruce MomjianDate: 2007-04-02 20:39:00
Subject: Re: [pgsql-patches] O_DIRECT support for Windows

Privacy Policy | About PostgreSQL
Copyright © 1996-2015 The PostgreSQL Global Development Group