Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 84ec9b2

Browse files
1 parent 43a899f commit 84ec9b2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/backend/access/nbtree/nbtdedup.c

+1-5
Original file line numberDiff line numberDiff 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));

0 commit comments

Comments
 (0)