Re: Remove restrictions in recursive query
От | Tom Lane |
---|---|
Тема | Re: Remove restrictions in recursive query |
Дата | |
Msg-id | 2215554.1743120856@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | Re: Remove restrictions in recursive query (Renan Alves Fonseca <renanfonseca@gmail.com>) |
Ответы |
Re: Remove restrictions in recursive query
|
Список | pgsql-hackers |
Renan Alves Fonseca <renanfonseca@gmail.com> writes: > I suspected that this restriction came straight from the specs. I > understand that while the proposed solution can help in some specific > use cases, it is not enough to justify an exception to the spec. Well, we extend the spec in lots of places. I'd be okay with removing this restriction if I were sure there were no bad consequences, but it seems likely that there are some. College math was way too long ago for me to be sure about the "fixed-point" business ... but I think what they may be on about is that rows produced by aggregation may not be stable in the face of adding more and more rows via additions to the recursion workspace. In your example, I think it somewhat accidentally doesn't matter: an underlying row might get picked up and added to a dag.target-grouped row in one recursion step or a different one, but then you sum all those sums in the top-level query, so the top sum comes out the same regardless of just what sets the intermediate grouped rows consisted of. With a different query construction though, that would matter. regards, tom lane
В списке pgsql-hackers по дате отправления: