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:
@ -55,8 +55,8 @@ static bool _bt_posting_valid(IndexTuple posting);
|
|||||||
* LP_DEAD bits set.
|
* LP_DEAD bits set.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
_bt_dedup_pass(Relation rel, Buffer buf, Relation heapRel, IndexTuple newitem,
|
_bt_dedup_pass(Relation rel, Buffer buf, IndexTuple newitem, Size newitemsz,
|
||||||
Size newitemsz, bool bottomupdedup)
|
bool bottomupdedup)
|
||||||
{
|
{
|
||||||
OffsetNumber offnum,
|
OffsetNumber offnum,
|
||||||
minoff,
|
minoff,
|
||||||
|
@ -2769,8 +2769,8 @@ _bt_delete_or_dedup_one_page(Relation rel, Relation heapRel,
|
|||||||
|
|
||||||
/* Perform deduplication pass (when enabled and index-is-allequalimage) */
|
/* Perform deduplication pass (when enabled and index-is-allequalimage) */
|
||||||
if (BTGetDeduplicateItems(rel) && itup_key->allequalimage)
|
if (BTGetDeduplicateItems(rel) && itup_key->allequalimage)
|
||||||
_bt_dedup_pass(rel, buffer, heapRel, insertstate->itup,
|
_bt_dedup_pass(rel, buffer, insertstate->itup, insertstate->itemsz,
|
||||||
insertstate->itemsz, (indexUnchanged || uniquedup));
|
(indexUnchanged || uniquedup));
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -1157,9 +1157,8 @@ extern void _bt_parallel_advance_array_keys(IndexScanDesc scan);
|
|||||||
/*
|
/*
|
||||||
* prototypes for functions in nbtdedup.c
|
* prototypes for functions in nbtdedup.c
|
||||||
*/
|
*/
|
||||||
extern void _bt_dedup_pass(Relation rel, Buffer buf, Relation heapRel,
|
extern void _bt_dedup_pass(Relation rel, Buffer buf, IndexTuple newitem,
|
||||||
IndexTuple newitem, Size newitemsz,
|
Size newitemsz, bool bottomupdedup);
|
||||||
bool bottomupdedup);
|
|
||||||
extern bool _bt_bottomupdel_pass(Relation rel, Buffer buf, Relation heapRel,
|
extern bool _bt_bottomupdel_pass(Relation rel, Buffer buf, Relation heapRel,
|
||||||
Size newitemsz);
|
Size newitemsz);
|
||||||
extern void _bt_dedup_start_pending(BTDedupState state, IndexTuple base,
|
extern void _bt_dedup_start_pending(BTDedupState state, IndexTuple base,
|
||||||
|
Reference in New Issue
Block a user