1SPI_GETTYPE(3) PostgreSQL 14.3 Documentation SPI_GETTYPE(3)
2
3
4
6 SPI_gettype - return the data type name of the specified column
7
9 char * SPI_gettype(TupleDesc rowdesc, int colnumber)
10
12 SPI_gettype returns a copy of the data type name of the specified
13 column. (You can use pfree to release the copy of the name when you
14 don't need it anymore.)
15
17 TupleDesc rowdesc
18 input row description
19
20 int colnumber
21 column number (count starts at 1)
22
24 The data type name of the specified column, or NULL on error.
25 SPI_result is set to SPI_ERROR_NOATTRIBUTE on error.
26
27
28
29PostgreSQL 14.3 2022 SPI_GETTYPE(3)