30th September 2021: PostgreSQL 14 Released!
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_find

Name

SPI_cursor_find -- Finds an existing cursor (Portal) by name

Synopsis

SPI_cursor_find(name)

Inputs

char *name

Name of portal

Outputs

Portal

Pointer to Portal with given name, or NULL if not found

Description

SPI_cursor_find finds a pre-existing Portal by name. This is primarily useful to resolve a cursor name returned as text by some other function.