SPI_FREETUPTABLE(3)
πΈ NAME πΈ
okay so bestie, this is SPI_FREETUPTABLE(3) from the PostgreSQL 13.23 Documentation β it frees a row set created by SPI_execute or a similar function. periodt. π
β¨ SYNOPSIS β¨
void SPI_freetuptable(SPITupleTable * tuptable)
π¦ DESCRIPTION π¦
SPI_freetuptable frees a row set made by a prior SPI command execution function, like SPI_execute. Because of that, itβs often called with the global variable SPI_tuptable as its argument. iconic behavior, honestly. π
This function is useful if an SPI-using C function needs to execute multiple commands and does not want to keep the results of earlier commands around until it ends. Note that any unfreed row sets will be freed anyway at SPI_finish. Also, if a subtransaction is started and then aborted within execution of an SPI-using C function, SPI automatically frees any row sets created while the subtransaction was running. the cleanup crew stays booked and busy π§Ήβ¨
Beginning in PostgreSQL 9.3, SPI_freetuptable contains guard logic to protect against duplicate deletion requests for the same row set. In previous releases, duplicate deletions would lead to crashes. crashes, bestie β not the vibe. π
π ARGUMENTS π
SPITupleTable * tuptableβ pointer to the row set to free, orNULLto do nothing. simple, clean, no drama π«Ά
mwah π β PostgreSQL 13.23 Documentation, dated 2025. Now go free those row sets, bestie! πβ
π¦ where this page comes from
- opensuse-leap 16.0: postgresql13-docs 13.23-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