SPI_fname <refpurpose>determine the column name for the specified column number</refpurpose> — 指定した列番号に対する列名を決定する
char * SPI_fname(TupleDescrowdesc, intcolnumber)
<function>SPI_fname</function> returns a copy of the column 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_fname は指定した列の列名のコピーを返します。
(名前のコピーが不要になった場合pfreeを使用してその領域を解放することができます。)
TupleDesc rowdescinput row description 入力行の記述
int colnumbercolumn number (count starts at 1) (1から始まる)列番号
The column name; <symbol>NULL</symbol> if
<parameter>colnumber</parameter> is out of range.
<varname>SPI_result</varname> set to
<symbol>SPI_ERROR_NOATTRIBUTE</symbol> on error.
列の名前です。
colnumberが範囲外の場合はNULLです。
エラー時、SPI_resultはSPI_ERROR_NOATTRIBUTEに設定されます。