mirror of
https://github.com/postgres/postgres.git
synced 2025-09-09 13:09:39 +03:00
Revert "Introduce CompactAttribute array in TupleDesc"
This reverts commit d28dff3f6c
.
Quite a large number of buildfarm members didn't like this commit and
it's not yet clear why. Reverting this before too many animals turn
red.
Discussion: https://postgr.es/m/CAApHDvr9i6T5=iAwQCxFDgMsthr_obVxgwBaEJkC8KUH6yM3Hw@mail.gmail.com
This commit is contained in:
@@ -331,9 +331,7 @@ getSpGistTupleDesc(Relation index, SpGistTypeDesc *keyType)
|
||||
att->attcollation = InvalidOid;
|
||||
/* In case we changed typlen, we'd better reset following offsets */
|
||||
for (int i = spgFirstIncludeColumn; i < outTupDesc->natts; i++)
|
||||
TupleDescCompactAttr(outTupDesc, i)->attcacheoff = -1;
|
||||
|
||||
populate_compact_attribute(outTupDesc, spgKeyColumn);
|
||||
TupleDescAttr(outTupDesc, i)->attcacheoff = -1;
|
||||
}
|
||||
return outTupDesc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user