このページを編集する際は、編集に関する方針に従ってください。
概要 †
- nattsを、intとして定義。
- attrsを、Form_pg_attributeへのポインタとして定義。
- constrを、TupleConstrへのポインタとして定義。
- tdtypeidを、Oidとして定義。
- tdtypmodを、int32として定義。
- tdhasoidを、boolとして定義。
実装 †
typedef struct tupleDesc
{
int natts; /* number of attributes in the tuple */
Form_pg_attribute *attrs;
/* attrs[N] is a pointer to the description of Attribute Number N+1 */
- 以下のメンバを持つ構造体FormData_pg_attributeへのポインタ。詳細はForm_pg_attribute/postgresql-8.1.4参照。
- attrelidを、Oid(unsigned intの別名)として定義。
- attnameを、以下のメンバを持つ構造体NameDataとして定義。
- dataを、サイズNAMEDATALENのchar配列として定義。
- alignmentDummyを、intとして定義。
- atttypidを、Oid(unsigned intの別名)として定義。
- attstattargetを、int4(int32(signed int)の別名)として定義。
- attlenを、int2(int16(signed short)の別名)として定義。
- attnumを、int2(int16(signed short)の別名)として定義。
- attndimsを、int4(int32(signed int)の別名)として定義。
- attcacheoffを、int4(int32(signed int)の別名)として定義。
- atttypmodを、int4(int32(signed int)の別名)として定義。
- attbyvalを、bool(charの別名)として定義。
- attstorageを、charとして定義。
- attalignを、charとして定義。
- attnotnullを、bool(charの別名)として定義。
- atthasdefを、bool(charの別名)として定義。
- attisdroppedを、bool(charの別名)として定義。
- attislocalを、bool(charの別名)として定義。
- attinhcountを、int4(int32(signed int)の別名)として定義。
TupleConstr *constr; /* constraints, or NULL if none */
Oid tdtypeid; /* composite type ID for tuple type */
int32 tdtypmod; /* typmod for tuple type */
bool tdhasoid; /* tuple has oid attribute in its header */
} *TupleDesc;
履歴 †
コメント †