1SPI_FNAME(3)             PostgreSQL 12.2 Documentation            SPI_FNAME(3)
2
3
4

NAME

6       SPI_fname - determine the column name for the specified column number
7

SYNOPSIS

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

DESCRIPTION

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

ARGUMENTS

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

RETURN VALUE

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 12.2                      2020                         SPI_FNAME(3)
Impressum