mirror of
https://github.com/postgres/postgres.git
synced 2025-11-01 21:31:19 +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:
@@ -124,13 +124,11 @@ index_getattr(IndexTuple tup, int attnum, TupleDesc tupleDesc, bool *isnull)
|
||||
|
||||
if (!IndexTupleHasNulls(tup))
|
||||
{
|
||||
CompactAttribute *attr = TupleDescCompactAttr(tupleDesc, attnum - 1);
|
||||
|
||||
if (attr->attcacheoff >= 0)
|
||||
if (TupleDescAttr(tupleDesc, attnum - 1)->attcacheoff >= 0)
|
||||
{
|
||||
return fetchatt(attr,
|
||||
(char *) tup + IndexInfoFindDataOffset(tup->t_info) +
|
||||
attr->attcacheoff);
|
||||
return fetchatt(TupleDescAttr(tupleDesc, attnum - 1),
|
||||
(char *) tup + IndexInfoFindDataOffset(tup->t_info)
|
||||
+ TupleDescAttr(tupleDesc, attnum - 1)->attcacheoff);
|
||||
}
|
||||
else
|
||||
return nocache_index_getattr(tup, attnum, tupleDesc);
|
||||
|
||||
Reference in New Issue
Block a user