mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Remove dead code from _bt_update_posting().
Discussion: https://postgr.es/m/CAH2-WzmAufHiOku6AGiFD=81VQs5nYJ1L2YkhW1t+BH4CMsgRw@mail.gmail.com
This commit is contained in:
@ -674,11 +674,6 @@ _bt_update_posting(BTVacuumPosting vacposting)
|
|||||||
Assert(_bt_posting_valid(origtuple));
|
Assert(_bt_posting_valid(origtuple));
|
||||||
Assert(nhtids > 0 && nhtids < BTreeTupleGetNPosting(origtuple));
|
Assert(nhtids > 0 && nhtids < BTreeTupleGetNPosting(origtuple));
|
||||||
|
|
||||||
if (BTreeTupleIsPosting(origtuple))
|
|
||||||
keysize = BTreeTupleGetPostingOffset(origtuple);
|
|
||||||
else
|
|
||||||
keysize = IndexTupleSize(origtuple);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Determine final size of new tuple.
|
* Determine final size of new tuple.
|
||||||
*
|
*
|
||||||
@ -686,6 +681,7 @@ _bt_update_posting(BTVacuumPosting vacposting)
|
|||||||
* for new posting list tuples. We avoid calling _bt_form_posting() here
|
* for new posting list tuples. We avoid calling _bt_form_posting() here
|
||||||
* to save ourselves a second memory allocation for a htids workspace.
|
* to save ourselves a second memory allocation for a htids workspace.
|
||||||
*/
|
*/
|
||||||
|
keysize = BTreeTupleGetPostingOffset(origtuple);
|
||||||
if (nhtids > 1)
|
if (nhtids > 1)
|
||||||
newsize = MAXALIGN(keysize +
|
newsize = MAXALIGN(keysize +
|
||||||
nhtids * sizeof(ItemPointerData));
|
nhtids * sizeof(ItemPointerData));
|
||||||
|
Reference in New Issue
Block a user