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

Re: top-level DML under CTEs

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: top-level DML under CTEs
Date: 2010-09-13 13:20:19
Message-ID: AANLkTim9Mtf1P1M3JApR3O3Af=VzP_h9t712AXC_TqWL@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-rrreviewers
On Mon, Sep 13, 2010 at 9:15 AM, Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)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

In response to

Responses

pgsql-hackers by date

Next:From: Teodor SigaevDate: 2010-09-13 13:22:24
Subject: Re: knngist - 0.8
Previous:From: Hitoshi HaradaDate: 2010-09-13 13:15:24
Subject: top-level DML under CTEs

pgsql-rrreviewers by date

Next:From: Merlin MoncureDate: 2010-09-13 18:43:18
Subject: Re: top-level DML under CTEs
Previous:From: Hitoshi HaradaDate: 2010-09-13 13:15:24
Subject: top-level DML under CTEs

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