SPI_scroll_cursor_fetch
fetch some rows from a cursor
- Provided by: postgresql-doc-9.5 (Version: 9.5.25-0ubuntu0.16.04.1)
- Source: postgresql-9.5
- Report a bug
fetch some rows from a cursor
void SPI_scroll_cursor_fetch(Portal portal, FetchDirection direction,
long count)
SPI_scroll_cursor_fetch fetches some rows from a cursor. This is equivalent to the SQL command FETCH.
Portal portal
FetchDirection direction
long count
SPI_processed and SPI_tuptable are set as in SPI_execute if successful.
See the SQL FETCH(7) command for details of the interpretation of the direction and count parameters.
Direction values other than FETCH_FORWARD may fail if the cursor's plan was not created with the CURSOR_OPT_SCROLL option.