Hi, I read in the documentation of SPI functions that an SPI_cursor is used to avoid memory overrun in cases where a query returns many rows. I'd like to learn more about this. Is their any place that I could find more detailed information (e.g. max size of results, threshold - available memory etc.)? I searched the archives but nothing. Regards, Ntinos Katsaros
"Katsaros Kwn/nos" <ntinos@aueb.gr> writes:
> I read in the documentation of SPI functions that an SPI_cursor is used
> to avoid memory overrun in cases where a query returns many rows. I'd
> like to learn more about this. Is their any place that I could find more
> detailed information (e.g. max size of results, threshold - available
> memory etc.)?
You could look at plpgsql's use of SPI cursors for an example.
regards, tom lane
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера