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

Re: top-level DML under CTEs

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: Hitoshi Harada <umi(dot)tanuki(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: top-level DML under CTEs
Date: 2010-09-13 19:14:49
Message-ID: AANLkTinVeefjte4_NvFwPWfEvanR=49Q9eeajjV42Bc4@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-hackerspgsql-rrreviewers
On Mon, Sep 13, 2010 at 2:43 PM, Merlin Moncure <mmoncure(at)gmail(dot)com> wrote:
> Just to be clear, the attached patch is missing the part of the wCTE
> that allows queries of the form:
> WITH foo AS (DELETE * FROM bar RETURNING *) <any query using foo>

Understood.

> IOW, your CTE query has to be a select.  This is still highly useful
> however.

Agreed.

> The patch itself looks very clean after a quick glance
> (which is all I can offer ATM unfortunately).

Yeah, I haven't had a chance to look at it either, just wanted to send props.

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

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2010-09-13 19:28:22
Subject: Re: Report: removing the inconsistencies in our CVS->git conversion
Previous:From: Merlin MoncureDate: 2010-09-13 18:43:18
Subject: Re: top-level DML under CTEs

pgsql-rrreviewers by date

Next:From: Hitoshi HaradaDate: 2010-09-14 00:44:46
Subject: Re: top-level DML under CTEs
Previous:From: Merlin MoncureDate: 2010-09-13 18:43:18
Subject: Re: top-level DML under CTEs

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