mirror of
https://github.com/postgres/postgres.git
synced 2025-07-18 17:42:25 +03:00
Remove redundant IndexTupleDSize macro.
Use IndexTupleSize everywhere, instead. Also, remove IndexTupleSize's internal typecast, as that's not really needed and might mask coding errors. Change some pointer variable datatypes in the call sites to compensate for that and make it clearer what we're assuming. Ildar Musin, Robert Haas, Stephen Frost Discussion: https://postgr.es/m/0274288e-9e88-13b6-c61c-7b36928bf221@postgrespro.ru
This commit is contained in:
@ -67,9 +67,9 @@ RelationPutHeapTuple(Relation relation,
|
||||
if (!token)
|
||||
{
|
||||
ItemId itemId = PageGetItemId(pageHeader, offnum);
|
||||
Item item = PageGetItem(pageHeader, itemId);
|
||||
HeapTupleHeader item = (HeapTupleHeader) PageGetItem(pageHeader, itemId);
|
||||
|
||||
((HeapTupleHeader) item)->t_ctid = tuple->t_self;
|
||||
item->t_ctid = tuple->t_self;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user