Re: recursive query crash - Mailing list pgsql-hackers

From Robert Haas
Subject Re: recursive query crash
Date
Msg-id 603c8f070810120528k33549312qac7e5b7f275ed593@mail.gmail.com
Whole thread Raw
In response to Re: recursive query crash  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: recursive query crash
List pgsql-hackers
> If we were to flatten it to a plain "select * from z" then maybe things
> would work all right, but the present implementation treats both WITH
> clauses as equally requiring single evaluation.

Surely it should be a single evaluation for each time that branch of
the upper WITH is recursively evaluated?  I can't think what the
semantics are otherwise.  a is a function of z, so you can't change
the definition of z and pretend like it's OK that a still has the same
contents as before.

...Robert


pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: The Axe list
Next
From: Grzegorz Jaskiewicz
Date:
Subject: SELECT TOP %d PERCENT, or SELECT ... LIMIT %d PERCENT ?