SPI_FREEPLAN(3)

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

πŸŽ€ SPI_FREEPLAN(3) πŸŽ€

okay so bestie, welcome to the SPI_FREEPLAN(3) page straight from the PostgreSQL 15.19 Documentation. It's giving cleanup era ✨ and it's literally about freeing a previously saved prepared statement. no cap.


πŸ’– NAME πŸ’–

SPI_freeplan β€” free a previously saved prepared statement

✨ SYNOPSIS ✨

int SPI_freeplan(SPIPlanPtr plan)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so SPI_freeplan releases a prepared statement previously returned by SPI_prepare or saved by SPI_keepplan or SPI_saveplan.

that's the whole tea β˜• β€” it's the cleanup bestie for plans you already stashed. fr fr.

🌸 ARGUMENTS 🌸

  • SPIPlanPtr plan β€” pointer to statement to free. yes bestie, this is the plan you're freeing πŸ’…

πŸ’… RETURN VALUE πŸ’…

  • 0 on success.
  • SPI_ERROR_ARGUMENT if plan is NULL or invalid.

highkey important: that's the entire return-value vibe, no extra lore πŸ‘‘


xoxo bestie πŸ’– β€” this page is from PostgreSQL 15.19, dated 2026, and that's the footer fantasy. bye! 🫢🧚

πŸ“¦ where this page comes from