1SPI_GETTYPE(3)           PostgreSQL 11.3 Documentation          SPI_GETTYPE(3)
2
3
4

NAME

6       SPI_gettype - return the data type name of the specified column
7

SYNOPSIS

9       char * SPI_gettype(TupleDesc rowdesc, int colnumber)
10

DESCRIPTION

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

ARGUMENTS

17       TupleDesc rowdesc
18           input row description
19
20       int colnumber
21           column number (count starts at 1)
22

RETURN VALUE

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 11.3                      2019                       SPI_GETTYPE(3)
Impressum