Re: WITH RECUSIVE patches 0723
От | Tom Lane |
---|---|
Тема | Re: WITH RECUSIVE patches 0723 |
Дата | |
Msg-id | 23482.1217264813@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: WITH RECUSIVE patches 0723 (Andrew Gierth <andrew@tao11.riddles.org.uk>) |
Ответы |
Re: WITH RECUSIVE patches 0723
|
Список | pgsql-hackers |
Andrew Gierth <andrew@tao11.riddles.org.uk> writes: > "Tatsuo" == Tatsuo Ishii <ishii@postgresql.org> 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
В списке pgsql-hackers по дате отправления: