mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Update comments
Various places wanted to point out that tuple descriptors don't contain the variable-length fields of pg_attribute. This started when attacl was added, but more fields have been added since, and these comments haven't been kept up to date consistently. Reword so that the purpose is clearer and we don't have to keep updating them.
This commit is contained in:
@ -6734,7 +6734,10 @@ ATExecAddColumn(List **wqueue, AlteredTableInfo *tab, Relation rel,
|
||||
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;
|
||||
@ -6758,8 +6761,6 @@ ATExecAddColumn(List **wqueue, AlteredTableInfo *tab, Relation rel,
|
||||
attribute.attinhcount = colDef->inhcount;
|
||||
attribute.attcollation = collOid;
|
||||
|
||||
/* attribute.attacl is handled by InsertPgAttributeTuples() */
|
||||
|
||||
ReleaseSysCache(typeTuple);
|
||||
|
||||
tupdesc = CreateTupleDesc(lengthof(aattr), (FormData_pg_attribute **) &aattr);
|
||||
|
Reference in New Issue
Block a user