Andrew Gierth <[EMAIL PROTECTED]> writes: > "Tatsuo" == Tatsuo Ishii <[EMAIL PROTECTED]> writes: > Tatsuo> Included patches from Yoshiyuki should fix 1) and 2). I also > Tatsuo> add your SQLs to the regression test. Thanks.
> I think it needs this change in addition; without it, incorrect > results are returned when you reference a recursive view from within > the recursive query, due to the RecursionScan nodes becoming linked to > the wrong tuplestores. That whole business of using the EState to pass tuplestores back and forth looks fundamentally broken to me anyway; there's just no way it'll be certain to link the right nodes together in complicated cases with multiple recursions. The nodes should be carrying IDs (such as the name of the WITH item) which they use to search a lookaside list. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers