This page in other versions: Unsupported versions: 6.4 / 6.5 / 7.0

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.

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group