SPI_GETVALUE(3)
π SPI_GETVALUE(3) β the bestie edition π
Straight out of the PostgreSQL 13.23 Documentation, it's SPI_GETVALUE(3) π
and we're getting into it.
πΈ NAME πΈ
SPI_getvalue β return the string value of the specified column. Periodt. β¨
β¨ SYNOPSIS β¨
char * SPI_getvalue(HeapTuple row, TupleDesc rowdesc, int colnumber)
π DESCRIPTION π
Okay so SPI_getvalue returns the string representation of the value of the specified column. That's the whole vibe. π«Ά
The result comes back in memory allocated using palloc. (You can use pfree to release that memory when you don't need it anymore.) No cap. π
π ARGUMENTS π
HeapTuple rowβ the input row to be examined πTupleDesc rowdescβ the input row description πint colnumberβ the column number (count starts at1) π’
π«Ά RETURN VALUE π«Ά
You get the column value, or NULL if any of these is true:
- the column is null
colnumberis out of range (SPI_resultis set toSPI_ERROR_NOATTRIBUTE)- no output function is available (
SPI_resultis set toSPI_ERROR_NOOUTFUNC)
Made with π for PostgreSQL 13.23 Β· 2025 Β· SPI_GETVALUE(3) β mwah π
β¨
π¦ 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