PostgreSQL Source Code  git master
HashJoinTableData Struct Reference

#include <hashjoin.h>

Data Fields

int nbuckets
 
int log2_nbuckets
 
int nbuckets_original
 
int nbuckets_optimal
 
int log2_nbuckets_optimal
 
union {
   struct HashJoinTupleData **   unshared
 
   dsa_pointer_atomic *   shared
 
buckets
 
bool skewEnabled
 
HashSkewBucket ** skewBucket
 
int skewBucketLen
 
int nSkewBuckets
 
int * skewBucketNums
 
int nbatch
 
int curbatch
 
int nbatch_original
 
int nbatch_outstart
 
bool growEnabled
 
double totalTuples
 
double partialTuples
 
double skewTuples
 
BufFile ** innerBatchFile
 
BufFile ** outerBatchFile
 
Size spaceUsed
 
Size spaceAllowed
 
Size spacePeak
 
Size spaceUsedSkew
 
Size spaceAllowedSkew
 
MemoryContext hashCxt
 
MemoryContext batchCxt
 
MemoryContext spillCxt
 
HashMemoryChunk chunks
 
HashMemoryChunk current_chunk
 
dsa_areaarea
 
ParallelHashJoinStateparallel_state
 
ParallelHashJoinBatchAccessorbatches
 
dsa_pointer current_chunk_shared
 

Detailed Description

Definition at line 298 of file hashjoin.h.

Field Documentation

◆ area

◆ batchCxt

MemoryContext HashJoinTableData::batchCxt

◆ batches

◆ 

◆ chunks

◆ curbatch

◆ current_chunk

HashMemoryChunk HashJoinTableData::current_chunk

◆ current_chunk_shared

dsa_pointer HashJoinTableData::current_chunk_shared

Definition at line 362 of file hashjoin.h.

Referenced by ExecParallelHashTableSetCurrentBatch(), and ExecParallelHashTupleAlloc().

◆ growEnabled

bool HashJoinTableData::growEnabled

Definition at line 328 of file hashjoin.h.

Referenced by ExecHashIncreaseNumBatches(), and ExecHashTableCreate().

◆ hashCxt

MemoryContext HashJoinTableData::hashCxt

Definition at line 350 of file hashjoin.h.

Referenced by ExecHashTableCreate(), and ExecHashTableDestroy().

◆ innerBatchFile

◆ log2_nbuckets

◆ log2_nbuckets_optimal

int HashJoinTableData::log2_nbuckets_optimal

◆ nbatch

◆ nbatch_original

int HashJoinTableData::nbatch_original

◆ nbatch_outstart

int HashJoinTableData::nbatch_outstart

Definition at line 326 of file hashjoin.h.

Referenced by ExecHashJoinImpl(), ExecHashJoinNewBatch(), and ExecHashTableCreate().

◆ nbuckets

◆ nbuckets_optimal

int HashJoinTableData::nbuckets_optimal

◆ nbuckets_original

int HashJoinTableData::nbuckets_original

Definition at line 303 of file hashjoin.h.

Referenced by ExecHashAccumInstrumentation(), and ExecHashTableCreate().

◆ nSkewBuckets

◆ outerBatchFile

◆ parallel_state

◆ partialTuples

double HashJoinTableData::partialTuples

◆ shared

◆ skewBucket

◆ skewBucketLen

int HashJoinTableData::skewBucketLen

Definition at line 318 of file hashjoin.h.

Referenced by ExecHashBuildSkewHash(), ExecHashGetSkewBucket(), and ExecHashTableCreate().

◆ skewBucketNums

◆ skewEnabled

bool HashJoinTableData::skewEnabled

◆ skewTuples

double HashJoinTableData::skewTuples

Definition at line 332 of file hashjoin.h.

Referenced by ExecHashTableCreate(), ExecHashTableInsert(), and MultiExecPrivateHash().

◆ spaceAllowed

Size HashJoinTableData::spaceAllowed

Definition at line 345 of file hashjoin.h.

Referenced by ExecHashSkewTableInsert(), ExecHashTableCreate(), and ExecHashTableInsert().

◆ spaceAllowedSkew

Size HashJoinTableData::spaceAllowedSkew

Definition at line 348 of file hashjoin.h.

Referenced by ExecHashSkewTableInsert(), and ExecHashTableCreate().

◆ spacePeak

◆ spaceUsed

◆ spaceUsedSkew

Size HashJoinTableData::spaceUsedSkew

◆ spillCxt

◆ totalTuples

double HashJoinTableData::totalTuples

◆ unshared


The documentation for this struct was generated from the following file: