Re: [8.4] Updated WITH clause patch (non-recursive) - Mailing list pgsql-patches

From Gregory Stark
Subject Re: [8.4] Updated WITH clause patch (non-recursive)
Date
Msg-id 87wspvsk4c.fsf@oxford.xeocode.com
Whole thread Raw
In response to [8.4] Updated WITH clause patch (non-recursive)  (Neil Conway <neilc@samurai.com>)
Responses Re: [8.4] Updated WITH clause patch (non-recursive)
Re: [8.4] Updated WITH clause patch (non-recursive)
List pgsql-patches
"Neil Conway" <neilc@samurai.com> writes:

> Remaining work is to review the guts of the patch (which shouldn't take
> long), and write documentation and regression tests. I'm personally
> hoping to see this get into the tree fairly early in the 8.4 cycle,
> pending discussion of course.

Note that as it stands it directly inlines the subquery into the query
everywhere you use it. So if the user was hoping to save database work by
avoiding duplicate subqueries he or she may be disappointed. On the other hand
inlining it can allow the planner to produce better plans.

Tom's feeling at the time was that even though it was providing something from
the standard, it wasn't actually allowing the user to do anything he couldn't
before. If it doesn't provide any additional expressive capabilities then I
think he didn't like taking "with" as a reserved word.

I still hope to do recursive queries for 8.4 so I don't have strong feelings
for this part either way.

--
  Gregory Stark
  EnterpriseDB          http://www.enterprisedb.com
  Ask me about EnterpriseDB's On-Demand Production Tuning

pgsql-patches by date:

Previous
From: Neil Conway
Date:
Subject: [8.4] Updated WITH clause patch (non-recursive)
Next
From: Neil Conway
Date:
Subject: Re: [8.4] Updated WITH clause patch (non-recursive)