SPI_FREEPLAN(3)

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

✨ NAME ✨

okay so welcome to the SPI_FREEPLAN(3) page, bestie πŸ’– β€” this one is literally about SPI_freeplan, and its whole job is to free a previously saved prepared statement. periodt. πŸŽ€

🌸 SYNOPSIS 🌸

int SPI_freeplan(SPIPlanPtr plan)

πŸ¦‹ DESCRIPTION πŸ¦‹

SPI_freeplan releases a prepared statement that was previously returned by SPI_prepare, or saved by SPI_keepplan or SPI_saveplan. that's the vibe, no cap ✨

πŸŽ€ ARGUMENTS πŸŽ€

  • SPIPlanPtr plan β€” pointer to statement to free. yep, that's the one you're releasing 🫢

πŸ‘‘ RETURN VALUE πŸ‘‘

  • 0 on success. slay πŸ’…
  • SPI_ERROR_ARGUMENT if plan is NULL or invalid. that's the error case, so watch out πŸ’€

that's the whole page, bestie β€” it came from PostgreSQL 13.23, dated 2025. mwah, go free those statements responsibly πŸŒˆπŸ’–

πŸ“¦ where this page comes from