mirror of
https://github.com/postgres/postgres.git
synced 2025-09-02 04:21:28 +03:00
Revert indexed and enlargable binary heap implementation.
This reverts commitb840508644
andbcb14f4abc
. These commits were made for commit5bec1d6bc5
(Improve eviction algorithm in ReorderBuffer using max-heap for many subtransactions). However, per discussion, commitefb8acc0d0
replaced binary heap + index with pairing heap, and made these commits unnecessary. Reported-by: Jeff Davis Discussion: https://postgr.es/m/12747c15811d94efcc5cda72d6b35c80d7bf3443.camel%40j-davis.com
This commit is contained in:
@@ -422,7 +422,6 @@ gather_merge_setup(GatherMergeState *gm_state)
|
||||
/* Allocate the resources for the merge */
|
||||
gm_state->gm_heap = binaryheap_allocate(nreaders + 1,
|
||||
heap_compare_slots,
|
||||
false,
|
||||
gm_state);
|
||||
}
|
||||
|
||||
|
@@ -125,7 +125,7 @@ ExecInitMergeAppend(MergeAppend *node, EState *estate, int eflags)
|
||||
mergestate->ms_nplans = nplans;
|
||||
|
||||
mergestate->ms_slots = (TupleTableSlot **) palloc0(sizeof(TupleTableSlot *) * nplans);
|
||||
mergestate->ms_heap = binaryheap_allocate(nplans, heap_compare_slots, false,
|
||||
mergestate->ms_heap = binaryheap_allocate(nplans, heap_compare_slots,
|
||||
mergestate);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user