SPI_getvalue <refpurpose>return the string value of the specified column</refpurpose> — 指定された列の文字列値を返す
char * SPI_getvalue(HeapTuplerow, TupleDescrowdesc, intcolnumber)
<function>SPI_getvalue</function> returns the string representation
of the value of the specified column.
SPI_getvalueは指定された列の値の文字列表現を返します。
The result is returned in memory allocated using
<function>palloc</function>. (You can use
<function>pfree</function> to release the memory when you don't
need it anymore.)
結果は、pallocを使用して割り当てられたメモリ内に返されます。
(不要になった段階で、pfreeを使用してメモリを解放することができます。)
HeapTuple rowinput row to be examined 検査対象の入力行
TupleDesc rowdescinput row description 入力行の記述
int colnumbercolumn number (count starts at 1) (1から始まる)列番号
Column value, or <symbol>NULL</symbol> if the column is null,
<parameter>colnumber</parameter> is out of range
(<varname>SPI_result</varname> is set to
<symbol>SPI_ERROR_NOATTRIBUTE</symbol>), or no output function is
available (<varname>SPI_result</varname> is set to
<symbol>SPI_ERROR_NOOUTFUNC</symbol>).
列の値。
列がNULLの場合、あるいはcolnumberが範囲外の場合はNULLです(SPI_resultがSPI_ERROR_NOATTRIBUTEに設定されます)。
利用できる出力関数が存在しない場合は、NULLです。
(SPI_resultがSPI_ERROR_NOOUTFUNCに設定されます。)