select open change scope Open full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Unsupported versions: 7.3 / 7.2
Historical version. PostgreSQL 7.3 reached end of support in November 2007. See the current manual for supported releases.

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.

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.