SPI_GETVALUE(3)
π NAME π
okay so welcome to the SPI_GETVALUE(3) page, bestie β this is all about SPI_getvalue, the function that returns the string value of the specified column. π
β¨ SYNOPSIS β¨
char * SPI_getvalue(HeapTuple row, TupleDesc rowdesc, int colnumber)
π§ DESCRIPTION π§
SPI_getvalue returns the string representation of the value of the specified column. slay. π
The result is returned in memory allocated using palloc. (You can use pfree to release that memory when you don't need it anymore, bestie β no leaks, periodt.) π«Ά
π ARGUMENTS π
HeapTuple rowβ input row to be examined. πTupleDesc rowdescβ input row description. it's giving context.int colnumberβ column number (count starts at1, iykyk). π’
πΈ RETURN VALUE πΈ
Column value, or NULL if:
- the column is null, π
colnumberis out of range (SPI_resultis set toSPI_ERROR_NOATTRIBUTE), π¨- or no output function is available (
SPI_resultis set toSPI_ERROR_NOOUTFUNC). π
xoxo, PostgreSQL 17.11 docs, 2026, page SPI_GETVALUE(3) β stay iconic π
β¨
π¦ where this page comes from
- opensuse-leap 16.0: postgresql17-docs 17.11-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