Lines Matching refs:HashJoinTuple

137 	hashtable->spaceUsed += hashtable->nbuckets * sizeof(HashJoinTuple);  in MultiExecHash()
378 hashtable->buckets = (HashJoinTuple *) in ExecHashTableCreate()
379 palloc0(nbuckets * sizeof(HashJoinTuple)); in ExecHashTableCreate()
485 max_pointers = (work_mem * 1024L) / sizeof(HashJoinTuple); in ExecChooseHashTableSize()
486 max_pointers = Min(max_pointers, MaxAllocSize / sizeof(HashJoinTuple)); in ExecChooseHashTableSize()
508 bucket_bytes = sizeof(HashJoinTuple) * nbuckets; in ExecChooseHashTableSize()
523 bucket_size = (tupsize * NTUP_PER_BUCKET + sizeof(HashJoinTuple)); in ExecChooseHashTableSize()
528 bucket_bytes = nbuckets * sizeof(HashJoinTuple); in ExecChooseHashTableSize()
665 sizeof(HashJoinTuple) * hashtable->nbuckets); in ExecHashIncreaseNumBatches()
673 memset(hashtable->buckets, 0, sizeof(HashJoinTuple) * hashtable->nbuckets); in ExecHashIncreaseNumBatches()
688 HashJoinTuple hashTuple = (HashJoinTuple) (oldchunks->data + idx); in ExecHashIncreaseNumBatches()
701 HashJoinTuple copyTuple; in ExecHashIncreaseNumBatches()
703 copyTuple = (HashJoinTuple) dense_alloc(hashtable, hashTupleSize); in ExecHashIncreaseNumBatches()
790 (HashJoinTuple *) repalloc(hashtable->buckets, in ExecHashIncreaseNumBuckets()
791 hashtable->nbuckets * sizeof(HashJoinTuple)); in ExecHashIncreaseNumBuckets()
793 memset(hashtable->buckets, 0, hashtable->nbuckets * sizeof(HashJoinTuple)); in ExecHashIncreaseNumBuckets()
803 HashJoinTuple hashTuple = (HashJoinTuple) (chunk->data + idx); in ExecHashIncreaseNumBuckets()
853 HashJoinTuple hashTuple; in ExecHashTableInsert()
859 hashTuple = (HashJoinTuple) dense_alloc(hashtable, hashTupleSize); in ExecHashTableInsert()
886 hashtable->nbuckets_optimal * 2 <= MaxAllocSize / sizeof(HashJoinTuple)) in ExecHashTableInsert()
898 hashtable->nbuckets_optimal * sizeof(HashJoinTuple) in ExecHashTableInsert()
1082 HashJoinTuple hashTuple = hjstate->hj_CurTuple; in ExecScanHashBucket()
1162 HashJoinTuple hashTuple = hjstate->hj_CurTuple; in ExecScanHashTableForUnmatched()
1240 hashtable->buckets = (HashJoinTuple *) in ExecHashTableReset()
1241 palloc0(nbuckets * sizeof(HashJoinTuple)); in ExecHashTableReset()
1258 HashJoinTuple tuple; in ExecHashTableResetMatchFlags()
1514 HashJoinTuple hashTuple; in ExecHashSkewTableInsert()
1519 hashTuple = (HashJoinTuple) MemoryContextAlloc(hashtable->batchCxt, in ExecHashSkewTableInsert()
1556 HashJoinTuple hashTuple; in ExecHashRemoveNextSkewBucket()
1575 HashJoinTuple nextHashTuple = hashTuple->next; in ExecHashRemoveNextSkewBucket()
1591 HashJoinTuple copyTuple; in ExecHashRemoveNextSkewBucket()
1597 copyTuple = (HashJoinTuple) dense_alloc(hashtable, tupleSize); in ExecHashRemoveNextSkewBucket()