This page in other versions: Unsupported versions: 7.2 / 7.3

SPI_cursor_fetch

Name

SPI_cursor_fetch -- Fetches some rows from a cursor

Synopsis

SPI_cursor_fetch(portal,
forward,
count)

Inputs

Portal portal

Portal containing cursor

bool forward

True for fetch forward, false for fetch backward

int count

Maximum number of rows to fetch

Outputs

SPI_tuptable

initialized as in SPI_exec if successful

SPI_processed

initialized as in SPI_exec if successful

Description

SPI_cursor_fetch fetches some (more) rows from a cursor. This is equivalent to the SQL command FETCH.

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group