Unsupported versions: 7.3 / 7.2
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

SPI_cursor_close

Name

SPI_cursor_close -- Closes a cursor

Synopsis

SPI_cursor_close(portal)

Inputs

Portal portal

Portal containing cursor

Outputs

None

Description

SPI_cursor_close closes a previously created cursor and releases its Portal storage.

Usage

All open cursors are closed implicitly at transaction end. SPI_cursor_close need only be invoked if it is desirable to release resources sooner.