このページを編集する際は、編集に関する方針に従ってください。

概要

引数

実装

	/*
	 * heap_compute_data_size
	 *		Determine size of the data area of a tuple to be constructed
	 */
	Size
	heap_compute_data_size(TupleDesc tupleDesc,
						   Datum *values,
						   bool *isnull)
	{
		Size		data_length = 0;
		int			i;
		int			numberOfAttributes = tupleDesc->natts;
		Form_pg_attribute *att = tupleDesc->attrs;
	
		for (i = 0; i < numberOfAttributes; i++)
		{
			if (isnull[i])
				continue;
	
			data_length = att_align(data_length, att[i]->attalign);
			data_length = att_addlength(data_length, att[i]->attlen, values[i]);
		}
	
		return data_length;
	}

呼出元

履歴

コメント



トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS