1SPI_GETVALUE(3) PostgreSQL 13.3 Documentation SPI_GETVALUE(3)
2
3
4
6 SPI_getvalue - return the string value of the specified column
7
9 char * SPI_getvalue(HeapTuple row, TupleDesc rowdesc, int colnumber)
10
12 SPI_getvalue returns the string representation of the value of the
13 specified column.
14
15 The result is returned in memory allocated using palloc. (You can use
16 pfree to release the memory when you don't need it anymore.)
17
19 HeapTuple row
20 input row to be examined
21
22 TupleDesc rowdesc
23 input row description
24
25 int colnumber
26 column number (count starts at 1)
27
29 Column value, or NULL if the column is null, colnumber is out of range
30 (SPI_result is set to SPI_ERROR_NOATTRIBUTE), or no output function is
31 available (SPI_result is set to SPI_ERROR_NOOUTFUNC).
32
33
34
35PostgreSQL 13.3 2021 SPI_GETVALUE(3)