---
name: "SPI_cursor_close"
section: "3"
platform: "linux"
package: "postgresql"
version: "18.6-4"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/SPI_cursor_close"
---

# SPI\_cursor\_close(3)

close a cursor

## NAME

SPI\_cursor\_close - close a cursor

## SYNOPSIS

```
void SPI_cursor_close(Portal portal)
```

## DESCRIPTION

**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
