Re: [PATCHES] WITH RECUSIVE patches 0717 - Mailing list pgsql-hackers

From Erik
Subject Re: [PATCHES] WITH RECUSIVE patches 0717
Date
Msg-id 12057.156.83.1.19.1216402224.squirrel@webmail.xs4all.nl
Whole thread Raw
Responses Re: [PATCHES] WITH RECUSIVE patches 0717
List pgsql-hackers
On Fri, July 18, 2008 03:41, Tatsuo Ishii wrote:
>> > Here is the lastest WITH RECURSIVE patches against CVS HEAD created by
>> > Yoshiyuki Asaba and minor corrections by Tatsuo Ishii.
>>
>> I tried this patch vs. CVS HEAD used my usual configure option with
>> only --with-prefix set, then tried to make, and got:
>>
>> make[3]: *** No rule to make target `parse_cte.o', needed by `objfiles.txt'.
>>  Stop.
>> make[3]: Leaving directory `/home/shackle/pgsql/src/backend/parser'
>> make[2]: *** [parser-recursive] Error 2
>> make[2]: Leaving directory `/home/shackle/pgsql/src/backend'
>> make[1]: *** [all] Error 2
>> make[1]: Leaving directory `/home/shackle/pgsql/src'
>> make: *** [all] Error 2
>>
>> Is there something missing?
>
> Oops. I forgot to include patches against newly added files. Please
> try included patches.
>


This crashes the backend:

WITH RECURSIVE t(n) AS (
    VALUES (1)
  UNION ALL
    SELECT n+1 FROM t WHERE n < 5 ORDER BY 1
)
SELECT n FROM t;

apparently because of the  ORDER BY 1

( ORDER BY t.n  will just error out )


Compiled with:

    ./configure \
     --prefix=${install_dir} \
     --with-pgport=${pgport} \
     --quiet          \
     --enable-depend  \
     --enable-cassert \
     --enable-debug   \
     --with-openssl


hth

Erik Rijkers






pgsql-hackers by date:

Previous
From: Kenneth Marshall
Date:
Subject: Re: [PATCH]-hash index improving
Next
From: Tom Lane
Date:
Subject: Re: [PATCHES] WIP: executor_hook for pg_stat_statements