Re: "writable CTEs" - Mailing list pgsql-hackers

From David Fetter
Subject Re: "writable CTEs"
Date
Msg-id 20101229192648.GT25421@fetter.org
Whole thread Raw
In response to Re: "writable CTEs"  (Peter Geoghegan <peter.geoghegan86@gmail.com>)
List pgsql-hackers
On Tue, Dec 28, 2010 at 11:07:59PM +0000, Peter Geoghegan wrote:
> On 28 December 2010 20:07, Peter Eisentraut <peter_e@gmx.net> wrote:
> > The phrase "common table expression" does not appear anywhere in the SQL
> > standard.  The standard uses the grammar symbol <with clause>.
> 
> I think we're losing sight of the issue a bit here.
> 
> No one is proposing that we call WITH queries common table
> expressions. As I think we all agree, the term "WITH query" and
> "common table expression" are not synonymous. A WITH query is
> comprised of one or more common table expressions, plus a conventional
> SELECT query.

As of 9.1, the thing appended to the CTE(s) can be a conventional DML
query (SELECT, INSERT, UPDATE or DELETE).  I'm hoping to expand this
in future versions. :)

> All that I'm asking is that we /specify/ that the "subqueries"
> already mentioned in the docs are common table expressions.

+1

Cheers,
David.
-- 
David Fetter <david@fetter.org> http://fetter.org/
Phone: +1 415 235 3778  AIM: dfetter666  Yahoo!: dfetter
Skype: davidfetter      XMPP: david.fetter@gmail.com
iCal: webcal://www.tripit.com/feed/ical/people/david74/tripit.ics

Remember to vote!
Consider donating to Postgres: http://www.postgresql.org/about/donate


pgsql-hackers by date:

Previous
From: Gurjeet Singh
Date:
Subject: Re: pg_streamrecv for 9.1?
Next
From: Tom Lane
Date:
Subject: Re: and it's not a bunny rabbit, either