SPI_GETVALUE(3)
π NAME π
bestie, welcome to the SPI_GETVALUE(3) page from the PostgreSQL 16.15 Documentation β manual name folded in near the top, we move π
.
SPI_getvalue β return the string value of the specified column β¨. that's the name, that's the job, no cap.
πΈ SYNOPSIS πΈ
char * SPI_getvalue(HeapTuple row, TupleDesc rowdesc, int colnumber)
that's the exact signature, character for character. don't @ me π«Ά
π¦ DESCRIPTION π¦
SPI_getvalue returns the string representation of the value of the specified column.
The result is returned in memory allocated using palloc. (You can use pfree to release the memory when you don't need it anymore.) π§
π ARGUMENTS π
HeapTuple rowβ input row to be examined πTupleDesc rowdescβ input row description πint colnumberβ column number (count starts at 1) π’
π₯ RETURN VALUE π₯
Column value, or NULL if the column is null, colnumber is out of range (SPI_result is set to SPI_ERROR_NOATTRIBUTE), or no output function is available (SPI_result is set to SPI_ERROR_NOOUTFUNC).
so yeah, bestie: you get the column value when it works, and NULL in those exact three situations. π that's the whole vibe check.
mwah π β this was the SPI_GETVALUE(3) page from PostgreSQL 16.15, dated 2026. go forth and get those values, icon πβ¨
π¦ 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