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

Re: non-recursive WITH clause support

From: David Fetter <david(at)fetter(dot)org>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Gregory Stark <stark(at)enterprisedb(dot)com>,pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: non-recursive WITH clause support
Date: 2007-04-10 01:10:25
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-patches
On Mon, Apr 09, 2007 at 09:08:31PM -0400, Tom Lane wrote:
> David Fetter <david(at)fetter(dot)org> writes:
> > On Mon, Apr 09, 2007 at 06:43:08PM -0400, Tom Lane wrote:
> >> So this does not really add any new functionality, it's just variant
> >> syntax for something you can do about as easily without it, right?
> > Not totally as easily.  For example, you can do some kinds of
> > aggregation with a few fewer keystrokes.
> Example please?  It's not obvious to me what this does that wouldn't be
> exactly isomorphic to creating a temporary view.

It would be isomorphic, but happens automagically for the scope of the
query instead of being three queries.

David Fetter <david(at)fetter(dot)org>
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!
Consider donating to PostgreSQL:

In response to

pgsql-patches by date

Next:From: Bruce MomjianDate: 2007-04-10 01:15:12
Subject: Re: Clear up strxfrm() in UTF-8 with locale on Windows
Previous:From: Tom LaneDate: 2007-04-10 01:08:31
Subject: Re: non-recursive WITH clause support

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