Re: non-recursive WITH clause support - Mailing list pgsql-patches

From Bruce Momjian
Subject Re: non-recursive WITH clause support
Date
Msg-id 200704022045.l32Kj7w11154@momjian.us
Whole thread Raw
In response to non-recursive WITH clause support  (Gregory Stark <stark@enterprisedb.com>)
List pgsql-patches
Your patch has been added to the PostgreSQL unapplied patches list at:

    http://momjian.postgresql.org/cgi-bin/pgpatches

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.
>
>  http://community.enterprisedb.com/recursive/with-pg82stable-v2.patch.gz
>
> 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          http://www.enterprisedb.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org

--
  Bruce Momjian  <bruce@momjian.us>          http://momjian.us
  EnterpriseDB                               http://www.enterprisedb.com

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

pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [pgsql-patches] O_DIRECT support for Windows
Next
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] pgsql: Fix for plpython functions; return true/false for boolean,