mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +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:
@@ -630,7 +630,7 @@ TupleDescInitEntry(TupleDesc desc,
|
||||
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))
|
||||
@@ -691,7 +691,7 @@ TupleDescInitBuiltinEntry(TupleDesc desc,
|
||||
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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user