SPI_FREEPLAN(3)
π¦ NAME π¦
okay so bestie, welcome to SPI_FREEPLAN(3), straight outta the PostgreSQL 18.6 Documentation. this one is SPI_freeplan β free a previously saved prepared statement. literally the cleanup bestie we all need. π
β¨ SYNOPSIS β¨
int SPI_freeplan(SPIPlanPtr plan)
πΈ DESCRIPTION πΈ
SPI_freeplan releases a prepared statement previously returned by SPI_prepare or saved by SPI_keepplan or SPI_saveplan.
no cap, it's giving prepared-statement cleanup queen. π§Ήβ¨
π ARGUMENTS π
SPIPlanPtr planβ pointer to statement to free. yeah bestie, just hand over the pointer and let her do her thing. π«Ά
β RETURN VALUE β
0on success;SPI_ERROR_ARGUMENTifplanisNULLor invalid.
so if you get0, slay. if you getSPI_ERROR_ARGUMENT, check thatplan, because she said NULL or invalid and meant it. π
PostgreSQL 18.6 Β· 2026 Β· SPI_FREEPLAN(3) β that's the footer, bestie. now go free those plans responsibly πβ¨π
π¦ where this page comes from
- alpine 3.23: postgresql18-doc 18.6-r0 Β· PostgreSQL
- alpine 3.24: postgresql18-doc 18.6-r0 Β· PostgreSQL
- arch rolling: postgresql 18.6-4 Β· PostgreSQL
- fedora 43: postgresql-server-devel 18.6-1.fc43 Β· PostgreSQL
- fedora 43: postgresql-server-devel 18.6-1.fc43 Β· PostgreSQL
- fedora 44: postgresql-server-devel 18.6-1.fc44 Β· PostgreSQL
- fedora 44: postgresql-server-devel 18.6-1.fc44 Β· PostgreSQL
- nixos 26.05: postgresql 18.6
- ubuntu resolute: postgresql-doc-18 18.6-0ubuntu0.26.04.1 Β· PostgreSQL
- ubuntu stonking: postgresql-doc-18 18.6-3build2 Β· PostgreSQL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms