Re: Common Table Expressions (WITH RECURSIVE) patch

From: David Fetter <david(at)fetter(dot)org>
To: Tatsuo Ishii <ishii(at)postgresql(dot)org>
Cc: pgsql(at)j-davis(dot)com, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Common Table Expressions (WITH RECURSIVE) patch
Date: 2008-09-16 05:41:14
Message-ID: 20080916054114.GA17886@fetter.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Mon, Sep 15, 2008 at 06:46:16PM +0900, Tatsuo Ishii wrote:
> > > * Single Evaluation:
> > >
> > > with
> > > foo(i) as (select random() as i)
> > > select * from foo union all select * from foo;
> > > i
> > > -------------------
> > > 0.233165248762816
> > > 0.62126633618027
> > > (2 rows)
> > >
> > > The standard specifies that non-recursive WITH should be
> > > evaluated once.
> >
> > What shall we do? I don't think there's an easy way to fix this as
> > Tom suggested. Maybe we should not allow WITH clause without
> > RECURISVE for 8.4?
>
> This is a still remaing issue...

I don't think that the spec explicitly forbids this.

Cheers,
David.
--
David Fetter <david(at)fetter(dot)org> http://fetter.org/
Phone: +1 415 235 3778 AIM: dfetter666 Yahoo!: dfetter
Skype: davidfetter XMPP: david(dot)fetter(at)gmail(dot)com

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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Gregory Stark 2008-09-16 08:12:17 Re: Coping with nLocks overflow
Previous Message Sushant Sinha 2008-09-16 04:47:32 text search patch status update?