Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit84ec9b2

Browse files
1 parent43a899f commit84ec9b2

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)

[8]ページ先頭

©2009-2025 Movatter.jp