Re: creating WITH HOLD cursors using SPI

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: creating WITH HOLD cursors using SPI
Дата
Msg-id 23880.1118588881@sss.pgh.pa.us
обсуждение исходный текст
Ответ на creating WITH HOLD cursors using SPI  (Abhijit Menon-Sen <ams@oryx.com>)
Ответы Re: creating WITH HOLD cursors using SPI  ("Andrew Dunstan" <andrew@dunslane.net>)
Список pgsql-hackers
Abhijit Menon-Sen <ams@oryx.com> writes:
> I've been working on making it possible for PL/Perl users to fetch large
> result sets one row at a time (the current spi_exec_query interface just
> returns a big hash).

> The idea is to have spi_query call SPI_prepare/SPI_open_cursor, and have
> an spi_fetchrow that calls SPI_cursor_fetch.

This seems awfully limiting; isn't return_next a better API?
        regards, tom lane


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: interval->day first cut
Следующее
От: "Andrew Dunstan"
Дата:
Сообщение: Re: creating WITH HOLD cursors using SPI