Re: top-level DML under CTEs - Mailing list pgsql-hackers

From Robert Haas
Subject Re: top-level DML under CTEs
Date
Msg-id AANLkTim9Mtf1P1M3JApR3O3Af=VzP_h9t712AXC_TqWL@mail.gmail.com
Whole thread Raw
In response to top-level DML under CTEs  (Hitoshi Harada <umi.tanuki@gmail.com>)
Responses Re: top-level DML under CTEs  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
On Mon, Sep 13, 2010 at 9:15 AM, Hitoshi Harada <umi.tanuki@gmail.com> wrote:
> The patch attached is based on the one rejected at the last CF for 9.0
> last year.
>
> http://archives.postgresql.org/message-id/16303.1266023203@sss.pgh.pa.us
>
> This patch implements the feature that allows top-level DMLs under CTE
> WITH clause. For example:
>
> WITH t AS (SELECT * FROM x)
> UPDATE y SET val = t.val FROM t
> WHERE y.key = t.key;
>
> This feature is part of writeable CTEs proposed by David Fetter originally.

Thanks for pursuing this.  I think this will be a useful feature if we
can get it committed, and plus David Fetter will be very, very happy.
:-)

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company


pgsql-hackers by date:

Previous
From: Hitoshi Harada
Date:
Subject: top-level DML under CTEs
Next
From: Teodor Sigaev
Date:
Subject: Re: knngist - 0.8