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.

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