File tree 1 file changed +1
-5
lines changed
src/backend/access/nbtree
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -674,18 +674,14 @@ _bt_update_posting(BTVacuumPosting vacposting)
674
674
Assert (_bt_posting_valid (origtuple ));
675
675
Assert (nhtids > 0 && nhtids < BTreeTupleGetNPosting (origtuple ));
676
676
677
- if (BTreeTupleIsPosting (origtuple ))
678
- keysize = BTreeTupleGetPostingOffset (origtuple );
679
- else
680
- keysize = IndexTupleSize (origtuple );
681
-
682
677
/*
683
678
* Determine final size of new tuple.
684
679
*
685
680
* This calculation needs to match the code used within _bt_form_posting()
686
681
* for new posting list tuples. We avoid calling _bt_form_posting() here
687
682
* to save ourselves a second memory allocation for a htids workspace.
688
683
*/
684
+ keysize = BTreeTupleGetPostingOffset (origtuple );
689
685
if (nhtids > 1 )
690
686
newsize = MAXALIGN (keysize +
691
687
nhtids * sizeof (ItemPointerData ));
You can’t perform that action at this time.
0 commit comments