| От | Andrew Dunstan |
|---|---|
| Тема | Re: Recursive calls to functions that return sets |
| Дата | |
| Msg-id | 44218B13.6020909@dunslane.net обсуждение исходный текст |
| Ответ на | Re: Recursive calls to functions that return sets (Thomas Hallgren <thomas@tada.se>) |
| Список | pgsql-hackers |
Thomas Hallgren wrote: > Recursive calls works in PL/Java. No problem there. But the larger the > set, the more memory it consumes. Do I read your answers correctly if > I conclude this is a known limitation when SPI is used? I.e. there's > no way to stream one row at a time without ever building the full set? plperl stashes the results in a tuplestore object, which spills to disk. So memory use is not unbounded. Before 8.1 we had no return_next and no intermediate tuplestore, so we had serious memory problems with returning large sets. As for SPI calls, we also had problems there but now we provide a cursor interface that works much more nicely. cheers andrew
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера