att->attisdropped = false;
att->attislocal = true;
att->attinhcount = 0;
- /* attacl, attoptions and attfdwoptions are not present in tupledescs */
+ /* variable-length fields are not present in tupledescs */
tuple = SearchSysCache1(TYPEOID, ObjectIdGetDatum(oidtypeid));
if (!HeapTupleIsValid(tuple))
att->attisdropped = false;
att->attislocal = true;
att->attinhcount = 0;
- /* attacl, attoptions and attfdwoptions are not present in tupledescs */
+ /* variable-length fields are not present in tupledescs */
att->atttypid = oidtypeid;
* Construct and insert a set of tuples in pg_attribute.
*
* Caller has already opened and locked pg_attribute. tupdesc contains the
- * attributes to insert. attcacheoff is always initialized to -1, attacl,
- * attfdwoptions and attmissingval are always initialized to NULL. attoptions
- * must contain the same number of elements as tupdesc, or be NULL.
+ * attributes to insert. attcacheoff is always initialized to -1. attoptions
+ * supplies the values for the attoptions fields and must contain the same
+ * number of elements as tupdesc or be NULL. The other variable-length fields
+ * of pg_attribute are always initialized to null values.
*
* indstate is the index state for CatalogTupleInsertWithInfo. It can be
* passed as NULL, in which case we'll fetch the necessary info. (Don't do
list_make1_oid(rel->rd_rel->reltype),
0);
- /* construct new attribute's pg_attribute entry */
+ /*
+ * Construct new attribute's pg_attribute entry. (Variable-length fields
+ * are handled by InsertPgAttributeTuples().)
+ */
attribute.attrelid = myrelid;
namestrcpy(&(attribute.attname), colDef->colname);
attribute.atttypid = typeOid;
attribute.attinhcount = colDef->inhcount;
attribute.attcollation = collOid;
- /* attribute.attacl is handled by InsertPgAttributeTuples() */
-
ReleaseSysCache(typeTuple);
tupdesc = CreateTupleDesc(lengthof(aattr), (FormData_pg_attribute **) &aattr);