Re: [PATCHES] WITH RECURSIVE patch V0.1 - Mailing list pgsql-hackers

From David Fetter
Subject Re: [PATCHES] WITH RECURSIVE patch V0.1
Date
Msg-id 20080523182630.GA5921@fetter.org
Whole thread Raw
In response to Re: [PATCHES] WITH RECURSIVE patch V0.1  (Yoshiyuki Asaba <y-asaba@sraoss.co.jp>)
Responses Re: [PATCHES] WITH RECURSIVE patch V0.1
List pgsql-hackers
On Sat, May 24, 2008 at 03:21:01AM +0900, Yoshiyuki Asaba wrote:
> Hi,
>
> From: David Fetter <david@fetter.org>
> Subject: Re: [PATCHES] WITH RECURSIVE patch V0.1
> Date: Sun, 18 May 2008 11:47:37 -0700
>
> > I tried a bunch of different queries, and so far, only these two
> > haven't worked.  Any ideas what I'm doing wrong here?
> >
> > WITH RECURSIVE t(n) AS (
> >     SELECT 1
> > UNION ALL
> >     SELECT n+1
> >     FROM t
> >     WHERE n < 100
> > )
> > SELECT * FROM t;
> > ERROR:  cannot extract attribute from empty tuple slot
>
> Thank you for the report. I've fixed.
>
> postgres=# WITH RECURSIVE t(n) AS (
>     SELECT 1
> UNION ALL
>     SELECT n+1
>     FROM t
>     WHERE n < 100
> )
> SELECT count(*) FROM t;
>  count
> -------
>    100
> (1 row)
>
> Regards,
> --
> Yoshiyuki Asaba
> y-asaba@sraoss.co.jp

Great!

Where is the new patch?

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

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

pgsql-hackers by date:

Previous
From: Yoshiyuki Asaba
Date:
Subject: Re: [PATCHES] WITH RECURSIVE patch V0.1
Next
From: Tom Lane
Date:
Subject: Execution-time-sensitive timestamp regression tests