↑↓ select↵ open⌫ change scopeOpen full search

PG.CENTER connects PostgreSQL documentation, reference, and ecosystem knowledge. Maintained by Pigsty.

Unsupported versions: 6.3
Historical version. PostgreSQL 6.3 has reached end of support. See the current manual.
PostgreSQL
PrevNext

SPI_fname

Name

SPI_fname — Finds the attribute name for the specified attribute

SPI_fname(tupdesc, fname)

Inputs

TupleDesc tupdesc

Input tuple description

char * fnumber

Attribute number

Outputs

char *

Attribute name

NULL if fnumber is out of range
SPI_result set to SPI_ERROR_NOATTRIBUTE on error

Description

SPI_fname returns the attribute name for the specified attribute.

Usage

Attribute numbers are 1 based.

Algorithm

Returns a newly-allocated copy of the attribute name.


PrevHomeNext
SPI_fnumberUpSPI_getvalue

Report a documentation issue

Read the upstream documentation. For corrections, first check the current manual.