PostgreSQL Source Code  git master
AggState Struct Reference

#include <execnodes.h>

Data Fields

ScanState ss
 
Listaggs
 
int numaggs
 
int numtrans
 
AggStrategy aggstrategy
 
AggSplit aggsplit
 
AggStatePerPhase phase
 
int numphases
 
int current_phase
 
AggStatePerAgg peragg
 
AggStatePerTrans pertrans
 
ExprContexthashcontext
 
ExprContext ** aggcontexts
 
ExprContexttmpcontext
 
ExprContextcuraggcontext
 
AggStatePerAgg curperagg
 
AggStatePerTrans curpertrans
 
bool input_done
 
bool agg_done
 
int projected_set
 
int current_set
 
Bitmapsetgrouped_cols
 
Listall_grouped_cols
 
Bitmapsetcolnos_needed
 
int max_colno_needed
 
bool all_cols_needed
 
int maxsets
 
AggStatePerPhase phases
 
Tuplesortstatesort_in
 
Tuplesortstatesort_out
 
TupleTableSlotsort_slot
 
AggStatePerGrouppergroups
 
HeapTuple grp_firstTuple
 
bool table_filled
 
int num_hashes
 
MemoryContext hash_metacxt
 
struct HashTapeInfohash_tapeinfo
 
struct HashAggSpillhash_spills
 
TupleTableSlothash_spill_rslot
 
TupleTableSlothash_spill_wslot
 
Listhash_batches
 
bool hash_ever_spilled
 
bool hash_spill_mode
 
Size hash_mem_limit
 
uint64 hash_ngroups_limit
 
int hash_planned_partitions
 
double hashentrysize
 
Size hash_mem_peak
 
uint64 hash_ngroups_current
 
uint64 hash_disk_used
 
int hash_batches_used
 
AggStatePerHash perhash
 
AggStatePerGrouphash_pergroup
 
AggStatePerGroupall_pergroups
 
ProjectionInfocombinedproj
 
SharedAggInfoshared_info
 

Detailed Description

Definition at line 2141 of file execnodes.h.

Field Documentation

◆ agg_done

bool AggState::agg_done

◆ aggcontexts

◆ aggs

List* AggState::aggs

Definition at line 2144 of file execnodes.h.

Referenced by ExecInitAgg(), and ExecInitExprRec().

◆ aggsplit

◆ aggstrategy

◆ all_cols_needed

bool AggState::all_cols_needed

Definition at line 2171 of file execnodes.h.

Referenced by find_hash_columns(), and hashagg_spill_tuple().

◆ all_grouped_cols

List* AggState::all_grouped_cols

Definition at line 2168 of file execnodes.h.

Referenced by find_hash_columns(), and prepare_projection_slot().

◆ all_pergroups

AggStatePerGroup* AggState::all_pergroups

Definition at line 2212 of file execnodes.h.

Referenced by agg_refill_hash_table(), and ExecInterpExpr().

◆ colnos_needed

Bitmapset* AggState::colnos_needed

Definition at line 2169 of file execnodes.h.

Referenced by find_hash_columns(), and hashagg_spill_tuple().

◆ combinedproj

ProjectionInfo* AggState::combinedproj

Definition at line 2214 of file execnodes.h.

◆ curaggcontext

◆ curperagg

AggStatePerAgg AggState::curperagg

Definition at line 2159 of file execnodes.h.

Referenced by AggGetAggref(), AggStateIsShared(), ExecInitAgg(), and finalize_aggregate().

◆ curpertrans

◆ current_phase

int AggState::current_phase

Definition at line 2151 of file execnodes.h.

Referenced by agg_refill_hash_table(), agg_retrieve_direct(), and initialize_phase().

◆ current_set

◆ grouped_cols

Bitmapset* AggState::grouped_cols

Definition at line 2167 of file execnodes.h.

Referenced by ExecEvalGroupingFunc(), and prepare_projection_slot().

◆ grp_firstTuple

HeapTuple AggState::grp_firstTuple

Definition at line 2181 of file execnodes.h.

Referenced by agg_retrieve_direct(), ExecInitAgg(), and ExecReScanAgg().

◆ hash_batches

List* AggState::hash_batches

◆ hash_batches_used

int AggState::hash_batches_used

Definition at line 2204 of file execnodes.h.

Referenced by ExecEndAgg(), hashagg_spill_finish(), and show_hashagg_info().

◆ hash_disk_used

uint64 AggState::hash_disk_used

Definition at line 2203 of file execnodes.h.

Referenced by ExecEndAgg(), hash_agg_update_metrics(), and show_hashagg_info().

◆ hash_ever_spilled

bool AggState::hash_ever_spilled

Definition at line 2192 of file execnodes.h.

Referenced by ExecReScanAgg(), and hash_agg_enter_spill_mode().

◆ hash_mem_limit

Size AggState::hash_mem_limit

Definition at line 2195 of file execnodes.h.

Referenced by agg_refill_hash_table(), build_hash_tables(), and hash_agg_check_limits().

◆ hash_mem_peak

Size AggState::hash_mem_peak

Definition at line 2200 of file execnodes.h.

Referenced by ExecEndAgg(), hash_agg_update_metrics(), and show_hashagg_info().

◆ hash_metacxt

MemoryContext AggState::hash_metacxt

◆ hash_ngroups_current

uint64 AggState::hash_ngroups_current

◆ hash_ngroups_limit

uint64 AggState::hash_ngroups_limit

Definition at line 2196 of file execnodes.h.

Referenced by agg_refill_hash_table(), and hash_agg_check_limits().

◆ hash_pergroup

AggStatePerGroup* AggState::hash_pergroup

Definition at line 2207 of file execnodes.h.

Referenced by agg_refill_hash_table(), and lookup_hash_entries().

◆ hash_planned_partitions

int AggState::hash_planned_partitions

Definition at line 2197 of file execnodes.h.

Referenced by show_hashagg_info().

◆ hash_spill_mode

◆ hash_spill_rslot

TupleTableSlot* AggState::hash_spill_rslot

Definition at line 2189 of file execnodes.h.

Referenced by agg_refill_hash_table().

◆ hash_spill_wslot

TupleTableSlot* AggState::hash_spill_wslot

Definition at line 2190 of file execnodes.h.

Referenced by hashagg_spill_tuple().

◆ hash_spills

◆ hash_tapeinfo

◆ hashcontext

◆ hashentrysize

double AggState::hashentrysize

◆ input_done

bool AggState::input_done

Definition at line 2162 of file execnodes.h.

Referenced by agg_retrieve_direct(), ExecInitAgg(), and ExecReScanAgg().

◆ max_colno_needed

int AggState::max_colno_needed

Definition at line 2170 of file execnodes.h.

Referenced by find_hash_columns(), and hashagg_spill_tuple().

◆ maxsets

int AggState::maxsets

◆ num_hashes

◆ numaggs

int AggState::numaggs

Definition at line 2145 of file execnodes.h.

Referenced by ExecInitAgg(), ExecInitExprRec(), ExecReScanAgg(), and finalize_aggregates().

◆ numphases

int AggState::numphases

Definition at line 2150 of file execnodes.h.

Referenced by agg_retrieve_direct(), and ExecInitAgg().

◆ numtrans

◆ peragg

◆ pergroups

AggStatePerGroup* AggState::pergroups

Definition at line 2179 of file execnodes.h.

Referenced by agg_retrieve_direct(), ExecInitAgg(), and ExecReScanAgg().

◆ perhash

◆ pertrans

◆ phase

◆ phases

◆ projected_set

int AggState::projected_set

Definition at line 2164 of file execnodes.h.

Referenced by agg_retrieve_direct(), ExecInitAgg(), and ExecReScanAgg().

◆ shared_info

◆ sort_in

Tuplesortstate* AggState::sort_in

Definition at line 2175 of file execnodes.h.

Referenced by ExecEndAgg(), ExecInitAgg(), fetch_input_tuple(), and initialize_phase().

◆ sort_out

Tuplesortstate* AggState::sort_out

Definition at line 2176 of file execnodes.h.

Referenced by ExecEndAgg(), ExecInitAgg(), fetch_input_tuple(), and initialize_phase().

◆ sort_slot

TupleTableSlot* AggState::sort_slot

Definition at line 2177 of file execnodes.h.

Referenced by ExecInitAgg(), and fetch_input_tuple().

◆ ss

◆ table_filled

bool AggState::table_filled

◆ tmpcontext


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