This page in other versions: Unsupported versions: 7.1 / 7.2 / 7.3

SPI_gettype

Name

SPI_gettype -- Returns the type name of the specified attribute

Synopsis

SPI_gettype(tupdesc, fnumber)

Inputs

TupleDesc tupdesc

Input tuple description

int fnumber

Attribute number

Outputs

char *

The type name for the specified attribute number

SPI_result
SPI_ERROR_NOATTRIBUTE

Description

SPI_gettype returns a copy of the type name for the specified attribute.

Usage

Attribute numbers are 1 based.

Algorithm

Does not allocate new space for the binary value.

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