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

Lines changed: 1 addition & 5 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy