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-05-02 11:05:39 |
Message-ID: | 200705021105.l42B5dn01070@momjian.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-patches |
This has been saved for the 8.4 release:
http://momjian.postgresql.org/cgi-bin/pgpatches_hold
---------------------------------------------------------------------------
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(at)momjian(dot)us> http://momjian.us
EnterpriseDB http://www.enterprisedb.com
+ If your life is a hard drive, Christ can be your backup. +
From | Date | Subject | |
---|---|---|---|
Next Message | NikhilS | 2007-05-02 11:39:16 | Re: CREATE TABLE LIKE INCLUDING INDEXES support |
Previous Message | Heikki Linnakangas | 2007-05-02 10:29:51 | Diagnostic functions |