Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Patches > Re: [HACKERS] W...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3902 of 3979
Post > Topic >>

Re: [HACKERS] WITH RECURSIVE updated to CVS TIP

by ishii@[EMAIL PROTECTED] (Tatsuo Ishii) Jul 16, 2008 at 01:57 PM

> On Wed, Jul 16, 2008 at 09:37:25AM +0900, Tatsuo I****i wrote:
> > > On Tue, Jul 08, 2008 at 06:01:05PM +0900, Tatsuo I****i wrote:
> > > > Here is the patches he made against CVS HEAD (as of today).
> > > > 
> > > > According to him followings are fixed with the patches:
> > > > 
> > > > - fix crush with DISTINCT
> > > > - fix creating VIEW
> > > > - fix the case when recursion plan has another recursion plan
under it
> > > > - fix WITH RECURSIVE ...(..) SELECT ...WHERE.. returns wrong
result
> > > > - fix inifinit recursion with OUTER JOIN
> > > 
> > > Great!
> > > 
> > > I've patched psql for some partial sup****t of WITH [RECURSIVE].
> > > 
> > >
http://git.postgresql.org/?p=~davidfetter/postgresql/.git;a=commit;h=da63f9a82b9e902b5542f788b2e6e6bc95221793
> > 
> > Thanks. I will incor****ate them with propsed patches.
> 
> Part of the point of this exercise is to make git the way to do this.
> Can you please point me to a git repository where your latest changes
> are so I can publish them?
> 
> > > > Not yet fixed:
> > > > 
> > > > - detect certain queries those are not valid acroding to the
standard
> > > > - sort query names acording to the dependency
> > > 
> > > Is there something in the standard on how to do this?  How to sort
> > > the nodes other ways?
> > 
> > No idea.  What do you think if we allow only one query name at the
> > moment.
> 
> I'm not sure I understand what that has to do with sorting.
> 
> Please find attached a place where I've found some problems sorting by
> tree by array as Asaba-san suggested.

Humm. your problem seems to do nothing with the problem I refer to.

What I have in my mind is something like:

WITH RECURSIVE foo(a, b) AS
(SELECT ... UNION SELECT...),

bar(c, d) AS
(SELECT ... FROM foo WHERE ...UNION...)
)
SELECT * FROM foo;

In this there are two query names (foo, bar) and we need to detect the
dependency that bar relies on foo before processing the query.

However, as I said earlier, this kind of use case would be rare in the
real world, and I'd like to limit ourselves to having only one query
name at the moment.

Also I suggest to concentrate on reviewing the WITH RECURSIVE
implementation itself now, rather than discussing how to use git
repository or how to write an interesting WITH RECURSIVE applications.

Don't get me wrong. I believe git is a great tool. But we have limited
time and need to think about the priority.
--
Tatsuo I****i
SRA OSS, Inc. Japan

-- 
Sent via pgsql-patches mailing list (pgsql-patches@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-patches
 




 2 Posts in Topic:
Re: [HACKERS] WITH RECURSIVE updated to CVS TIP
ishii@[EMAIL PROTECTED]   2008-07-16 13:57:04 
Re: [HACKERS] WITH RECURSIVE updated to CVS TIP
david@[EMAIL PROTECTED]   2008-07-15 22:22:57 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Sep 8 3:07:06 CDT 2008.