124 #ifdef USE_ASSERT_CHECKING
139 #ifdef USE_ASSERT_CHECKING
140 uint32 lasthashkey = hashkey;
145 Assert(hashkey >= lasthashkey);
void pgstat_progress_update_param(int index, int64 val)
static Datum values[MAXATTR]
#define Assert(condition)
void _hash_doinsert(Relation rel, IndexTuple itup, Relation heapRel, bool sorted)
void _h_spool(HSpool *hspool, ItemPointer self, const Datum *values, const bool *isnull)
void _h_indexbuild(HSpool *hspool, Relation heapRel)
HSpool * _h_spoolinit(Relation heap, Relation index, uint32 num_buckets)
void _h_spooldestroy(HSpool *hspool)
uint32 _hash_get_indextuple_hashkey(IndexTuple itup)
Bucket _hash_hashkey2bucket(uint32 hashkey, uint32 maxbucket, uint32 highmask, uint32 lowmask)
void pfree(void *pointer)
void * palloc0(Size size)
#define CHECK_FOR_INTERRUPTS()
static uint32 pg_nextpower2_32(uint32 num)
#define PROGRESS_CREATEIDX_TUPLES_DONE
Tuplesortstate * sortstate
void tuplesort_performsort(Tuplesortstate *state)
void tuplesort_end(Tuplesortstate *state)
IndexTuple tuplesort_getindextuple(Tuplesortstate *state, bool forward)
Tuplesortstate * tuplesort_begin_index_hash(Relation heapRel, Relation indexRel, uint32 high_mask, uint32 low_mask, uint32 max_buckets, int workMem, SortCoordinate coordinate, int sortopt)
void tuplesort_putindextuplevalues(Tuplesortstate *state, Relation rel, ItemPointer self, const Datum *values, const bool *isnull)