| От | Tom Lane |
|---|---|
| Тема | Re: Recursive calls to functions that return sets |
| Дата | |
| Msg-id | 17845.1143048992@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Recursive calls to functions that return sets (Thomas Hallgren <thomas@tada.se>) |
| Ответы |
Re: Recursive calls to functions that return sets
|
| Список | pgsql-hackers |
Thomas Hallgren <thomas@tada.se> writes:
> 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?
By no means. The point is that there are some callers of SRFs that are
going to materialize the result set, as well as some SRFs that are going
to hand back a materialized result set anyway. The interface can handle
a tuple-per-call but that's not the way everybody chooses to use it.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера