mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Remove useless argument from nbtree dedup function.
_bt_dedup_pass()'s heapRel argument hasn't been needed or used since
commit cf2acaf4dc
made deleting any existing LP_DEAD index tuples the
caller's responsibility.
This commit is contained in:
@@ -55,8 +55,8 @@ static bool _bt_posting_valid(IndexTuple posting);
|
||||
* LP_DEAD bits set.
|
||||
*/
|
||||
void
|
||||
_bt_dedup_pass(Relation rel, Buffer buf, Relation heapRel, IndexTuple newitem,
|
||||
Size newitemsz, bool bottomupdedup)
|
||||
_bt_dedup_pass(Relation rel, Buffer buf, IndexTuple newitem, Size newitemsz,
|
||||
bool bottomupdedup)
|
||||
{
|
||||
OffsetNumber offnum,
|
||||
minoff,
|
||||
|
@@ -2769,8 +2769,8 @@ _bt_delete_or_dedup_one_page(Relation rel, Relation heapRel,
|
||||
|
||||
/* Perform deduplication pass (when enabled and index-is-allequalimage) */
|
||||
if (BTGetDeduplicateItems(rel) && itup_key->allequalimage)
|
||||
_bt_dedup_pass(rel, buffer, heapRel, insertstate->itup,
|
||||
insertstate->itemsz, (indexUnchanged || uniquedup));
|
||||
_bt_dedup_pass(rel, buffer, insertstate->itup, insertstate->itemsz,
|
||||
(indexUnchanged || uniquedup));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user