SPI_FREEPLAN(3)
π SPI_FREEPLAN(3) β the PostgreSQL 14.24 glow-up edition β¨
okay so bestie, welcome to the manual page for SPI_freeplan, straight out of the PostgreSQL 14.24 Documentation. it's short, it's sweet, and it's literally the cleanup crew of prepared statements π§Ήπ«Ά
πΈ NAME πΈ
SPI_freeplan β frees a prepared statement that you saved earlier. yes queen, we're doing the responsible thing and cleaning up after ourselves π
β¨ SYNOPSIS β¨
int SPI_freeplan(SPIPlanPtr plan)
one function, one pointer, zero drama. look at her go π¦
π DESCRIPTION π
so here's the tea β: SPI_freeplan releases a prepared statement β specifically the kind that was previously returned by SPI_prepare, or saved by SPI_keepplan or SPI_saveplan.
think of it as the "okay bestie, you can go now, thank you for your service" moment π like, you kept that plan around, it did its job, and now it's officially time to set it free. main character exit, no cap β¨
π ARGUMENTS π
SPIPlanPtr planβ pointer to the statement you want to free. that's it, that's the whole arg. give her the pointer and she'll handle the rest π«Ά
π RETURN VALUE π
0on success β slay, the plan is freed, we love a clean exit πSPI_ERROR_ARGUMENTifplanisNULLor invalid β ngl, if you hand her a null or bogus pointer she will hit you with this π so maybe double-check your pointer first, iykyk
β SEE ALSO β
(fr fr, the original page didn't list any SEE ALSO refs, so there's nothing extra to link here β just you, your plan pointer, and the freeing thereof π§)
π«Ά reminder bestie: freeing something that'sNULLor invalid gets youSPI_ERROR_ARGUMENT, not a crash-and-burn situation β but still, vibe check your pointers before you send them π
and that's the whole page, bestie π short and iconic, just like the original β which comes to you courtesy of PostgreSQL 14.24, dated 2026. go forth and free your plans responsibly, mwah πππΈ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql14-docs 14.24-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