]> begriffs open source - ai-pg/blob - full-docs/txt/spi-spi-gettype.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / spi-spi-gettype.txt
1
2 SPI_gettype
3
4    SPI_gettype — return the data type name of the specified column
5
6 Synopsis
7
8 char * SPI_gettype(TupleDesc rowdesc, int colnumber)
9
10 Description
11
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
16 Arguments
17
18    TupleDesc rowdesc
19           input row description
20
21    int colnumber
22           column number (count starts at 1)
23
24 Return Value
25
26    The data type name of the specified column, or NULL on error.
27    SPI_result is set to SPI_ERROR_NOATTRIBUTE on error.