SPI_CURSOR_CLOSE(3)
β¨ NAME β¨
Okay bestie, welcome to the manual page for SPI_CURSOR_CLOSE(3) π
β it's literally all about SPI_cursor_close, the function that closes a cursor. Main character energy only.
π SYNOPSIS π
void SPI_cursor_close(Portal portal)
π¦ DESCRIPTION π¦
So SPI_cursor_close closes a cursor you previously created and releases its portal storage. No cap, that's the whole vibe. π«Ά
Good news: all open cursors are closed automatically at the end of a transaction. So you only need to call SPI_cursor_close if you want to release resources sooner. Like, sooner sooner. π
Lowkey important: the automatic cleanup already happens at transaction end β this function is for getting those resources back early. β¨
πΈ ARGUMENTS πΈ
Portal portalβ the portal containing the cursor, bestie. That's the one you're closing. π
π SIGN-OFF π
This page is from PostgreSQL 17.11, dated 2026. Periodt. ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17-docs 17.11-160000.1.1 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms