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 LogicalTapeSethash_tapeset
 
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 2460 of file execnodes.h.

Field Documentation

◆ agg_done

bool AggState::agg_done

◆ aggcontexts

◆ aggs

List* AggState::aggs

Definition at line 2463 of file execnodes.h.

Referenced by ExecInitAgg(), and ExecInitExprRec().

◆ aggsplit

◆ aggstrategy

◆ all_cols_needed

bool AggState::all_cols_needed

Definition at line 2490 of file execnodes.h.

Referenced by find_hash_columns(), and hashagg_spill_tuple().

◆ all_grouped_cols

List* AggState::all_grouped_cols

Definition at line 2487 of file execnodes.h.

Referenced by ExecInitAgg(), find_hash_columns(), and prepare_projection_slot().

◆ all_pergroups

AggStatePerGroup* AggState::all_pergroups

Definition at line 2531 of file execnodes.h.

Referenced by ExecInitAgg(), and ExecInterpExpr().

◆ colnos_needed

Bitmapset* AggState::colnos_needed

Definition at line 2488 of file execnodes.h.

Referenced by find_hash_columns(), and hashagg_spill_tuple().

◆ combinedproj

ProjectionInfo* AggState::combinedproj

Definition at line 2533 of file execnodes.h.

◆ curaggcontext

◆ curperagg

AggStatePerAgg AggState::curperagg

Definition at line 2478 of file execnodes.h.

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

◆ curpertrans

◆ current_phase

int AggState::current_phase

◆ current_set

◆ grouped_cols

Bitmapset* AggState::grouped_cols

Definition at line 2486 of file execnodes.h.

Referenced by ExecEvalGroupingFunc(), and prepare_projection_slot().

◆ grp_firstTuple

HeapTuple AggState::grp_firstTuple

Definition at line 2500 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 2523 of file execnodes.h.

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

◆ hash_disk_used

uint64 AggState::hash_disk_used

Definition at line 2522 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 2511 of file execnodes.h.

Referenced by ExecReScanAgg(), and hash_agg_enter_spill_mode().

◆ hash_mem_limit

Size AggState::hash_mem_limit

◆ hash_mem_peak

Size AggState::hash_mem_peak

Definition at line 2519 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 2515 of file execnodes.h.

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

◆ hash_pergroup

AggStatePerGroup* AggState::hash_pergroup

Definition at line 2526 of file execnodes.h.

Referenced by agg_refill_hash_table(), ExecInitAgg(), and lookup_hash_entries().

◆ hash_planned_partitions

int AggState::hash_planned_partitions

Definition at line 2516 of file execnodes.h.

Referenced by ExecInitAgg(), and show_hashagg_info().

◆ hash_spill_mode

◆ hash_spill_rslot

TupleTableSlot* AggState::hash_spill_rslot

Definition at line 2508 of file execnodes.h.

Referenced by agg_refill_hash_table(), and ExecInitAgg().

◆ hash_spill_wslot

TupleTableSlot* AggState::hash_spill_wslot

Definition at line 2509 of file execnodes.h.

Referenced by ExecInitAgg(), and hashagg_spill_tuple().

◆ hash_spills

◆ hash_tapeset

◆ hashcontext

◆ hashentrysize

◆ input_done

bool AggState::input_done

Definition at line 2481 of file execnodes.h.

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

◆ max_colno_needed

int AggState::max_colno_needed

Definition at line 2489 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 2464 of file execnodes.h.

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

◆ numphases

int AggState::numphases

Definition at line 2469 of file execnodes.h.

Referenced by agg_retrieve_direct(), and ExecInitAgg().

◆ numtrans

◆ peragg

AggStatePerAgg AggState::peragg

◆ pergroups

AggStatePerGroup* AggState::pergroups

Definition at line 2498 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 2483 of file execnodes.h.

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

◆ shared_info

◆ sort_in

Tuplesortstate* AggState::sort_in

Definition at line 2494 of file execnodes.h.

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

◆ sort_out

Tuplesortstate* AggState::sort_out

Definition at line 2495 of file execnodes.h.

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

◆ sort_slot

TupleTableSlot* AggState::sort_slot

Definition at line 2496 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: