SPI_gettype <refpurpose>return the data type name of the specified column</refpurpose> — 指定された列のデータ型名を返す
char * SPI_gettype(TupleDescrowdesc, intcolnumber)
<function>SPI_gettype</function> returns a copy of the data type name of the
specified column. (You can use <function>pfree</function> to
release the copy of the name when you don't need it anymore.)
SPI_gettypeは指定された列のデータ型名のコピーを返します。
(不要になった段階で、pfreeを使用して名前のコピーを解放することができます。)
TupleDesc rowdescinput row description 入力行の記述
int colnumbercolumn number (count starts at 1) (1から始まる)列番号
The data type name of the specified column, or
<symbol>NULL</symbol> on error. <varname>SPI_result</varname> is
set to <symbol>SPI_ERROR_NOATTRIBUTE</symbol> on error.
指定された列のデータ型名。
エラー時はNULLです。
エラー時、SPI_resultはSPI_ERROR_NOATTRIBUTEに設定されます。