SPI_COPYTUPLE(3)
π NAME π
Hey bestie, this is the manual page for SPI_COPYTUPLE(3) β the little PostgreSQL helper that makes a copy of a row in the upper executor context β¨
πΈ SYNOPSIS πΈ
HeapTuple SPI_copytuple(HeapTuple row)
π¦ DESCRIPTION π¦
Okay so SPI_copytuple makes a copy of a row in the upper executor context. This is normally used to return a modified row from a trigger π
In a function declared to return a composite type, use SPI_returntuple instead. Noted, bestie, no cap π
β οΈ This function can only be used while connected to SPI. Otherwise, it returnsNULLand setsSPI_resulttoSPI_ERROR_UNCONNECTED. So yeah β stay connected, or it's giving error vibes π
π ARGUMENTS π
HeapTuple rowβ the row to be copied π«Ά
β RETURN VALUE β
The copied row, or NULL on error β see SPI_result for an error indication π
That's the whole vibe, bestie β PostgreSQL 16.15, 2026, signing off π§π
π¦ where this page comes from
- opensuse-leap 16.0: postgresql16-docs 16.15-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