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