1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-07 00:36:50 +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:
Peter Geoghegan
2023-04-18 10:33:15 -07:00
parent b124104e73
commit 06e0652750
3 changed files with 6 additions and 7 deletions

View File

@ -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,

View File

@ -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));
}
/*

View File

@ -1157,9 +1157,8 @@ extern void _bt_parallel_advance_array_keys(IndexScanDesc scan);
/*
* prototypes for functions in nbtdedup.c
*/
extern void _bt_dedup_pass(Relation rel, Buffer buf, Relation heapRel,
IndexTuple newitem, Size newitemsz,
bool bottomupdedup);
extern void _bt_dedup_pass(Relation rel, Buffer buf, IndexTuple newitem,
Size newitemsz, bool bottomupdedup);
extern bool _bt_bottomupdel_pass(Relation rel, Buffer buf, Relation heapRel,
Size newitemsz);
extern void _bt_dedup_start_pending(BTDedupState state, IndexTuple base,