SPI_cursor_close(3)

SPI_cursor_close3

Close a cursor

Usage

void SPI_cursor_close(Portal portal)

Overview

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

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

Arguments

Portal portal

portal containing the cursor

From postgresql 18.6-4 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.