pg_FieldType

pg_FieldType -- Returns the type name for the corresponding field number

Description

int pg_fieldtype(int result_id, int field_number);

pg_FieldType() will return a string containing the type name of the given field in the given PostgreSQL result identifier. Field numbering starts at 0.