SPI_CURSOR_CLOSE(3)

πŸ“¦ version 17.11, in opensuse-leap 16.0

✨ 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