File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/backend/access/nbtree Expand file tree Collapse file tree 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)
674674 Assert (_bt_posting_valid (origtuple ));
675675 Assert (nhtids > 0 && nhtids < BTreeTupleGetNPosting (origtuple ));
676676
677- if (BTreeTupleIsPosting (origtuple ))
678- keysize = BTreeTupleGetPostingOffset (origtuple );
679- else
680- keysize = IndexTupleSize (origtuple );
681-
682677 /*
683678 * Determine final size of new tuple.
684679 *
685680 * This calculation needs to match the code used within _bt_form_posting()
686681 * for new posting list tuples. We avoid calling _bt_form_posting() here
687682 * to save ourselves a second memory allocation for a htids workspace.
688683 */
684+ keysize = BTreeTupleGetPostingOffset (origtuple );
689685 if (nhtids > 1 )
690686 newsize = MAXALIGN (keysize +
691687 nhtids * sizeof (ItemPointerData ));
You can’t perform that action at this time.
0 commit comments