SPI_FREETUPLE(3)
β¨ NAME β¨
SPI_freetuple β bestie, this is the one that frees a row that was allocated up in the upper executor context π
πΈ SYNOPSIS πΈ
void SPI_freetuple(HeapTuple row)
π¦ DESCRIPTION π¦
Okay so listen π«Ά β SPI_freetuple frees a row that you previously allocated in the upper executor context. That's it. That's the whole job. Cleanup era. β¨
And here's the tea, no cap: this function is no longer different from plain heap_freetuple. Like, they're literally the same thing now. π The only reason SPI_freetuple is still here is for backward compatibility with existing code β so all the old code out there can keep vibing without breaking. It's giving legacy icon, fr fr π
Heads up, bestie: if you're writing something brand new, you already know what the move is β but if you've got old code that calls SPI_freetuple, it still works, and that's the point. π
π ARGUMENTS π
HeapTuple rowβ the row you wanna free π§ that's it, that's the whole argument, she's lowkey low-maintenance
So yeah β you allocated a row up in the upper executor context, and now you're done with it, and this function is how you let it go. Free it, slay, move on. π
This little page came from the PostgreSQL 18.6 Documentation, dated 2026 β and it's the SPI_FREETUPLE(3) manual page, periodt. π Go free your tuples responsibly, bestie, and remember: even the deprecated girlies deserve love. ππ¦β¨
π¦ 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