SPI_cursor_fetch(portal, forward, count)
Portal containing cursor
True for fetch forward, false for fetch backward
Maximum number of rows to fetch
initialized as in SPI_exec if successful
SPI_cursor_fetch fetches some (more) rows from a cursor. This is equivalent to the SQL command FETCH.