September 26, 2024: PostgreSQL 17 Released!
Unsupported versions: 7.3 / 7.2 / 7.1
This documentation is for an unsupported version of PostgreSQL.
You may want to view the same page for the current version, or one of the other supported versions listed above instead.

SPI_gettypeid

Name

SPI_gettypeid -- Returns the type OID of the specified attribute

Synopsis

SPI_gettypeid(tupdesc, fnumber)

Inputs

TupleDesc tupdesc

Input tuple description

int fnumber

Attribute number

Outputs

OID

The type OID for the specified attribute number

SPI_result
SPI_ERROR_NOATTRIBUTE

Description

SPI_gettypeid returns the type OID for the specified attribute.

Usage

Attribute numbers are 1 based.