Ok, I'm started porting it to 8.0.1 and will fix this also.
By the way, did you know any test suit for such queries? To make some
regression test.
Regards, Evgen
> I tested you patch, and it's good work. I would all methods in PostgreSQL.
> I found query which kill backand
>
> WITH t AS (
> SELECT 0::int AS i
> UNION ALL SELECT i + 1 FROM t WHERE i < 100)
> SELECT * FROM t;
>
> Regards
> Pavel Stehule
>
>