PostgreSQL Source Code git master
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
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
 
SharedAggInfoshared_info
 

Detailed Description

Definition at line 2492 of file execnodes.h.

Field Documentation

◆ agg_done

bool AggState::agg_done

◆ aggcontexts

◆ aggs

List* AggState::aggs

Definition at line 2495 of file execnodes.h.

Referenced by ExecInitAgg(), and ExecInitExprRec().

◆ aggsplit

◆ aggstrategy

◆ all_cols_needed

bool AggState::all_cols_needed

Definition at line 2522 of file execnodes.h.

Referenced by find_hash_columns(), and hashagg_spill_tuple().

◆ all_grouped_cols

List* AggState::all_grouped_cols

Definition at line 2519 of file execnodes.h.

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

◆ all_pergroups

AggStatePerGroup* AggState::all_pergroups

Definition at line 2563 of file execnodes.h.

Referenced by ExecInitAgg(), and ExecInterpExpr().

◆ colnos_needed

Bitmapset* AggState::colnos_needed

Definition at line 2520 of file execnodes.h.

Referenced by find_hash_columns(), and hashagg_spill_tuple().

◆ curaggcontext

◆ curperagg

AggStatePerAgg AggState::curperagg

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

Referenced by ExecEvalGroupingFunc(), and prepare_projection_slot().

◆ grp_firstTuple

HeapTuple AggState::grp_firstTuple

Definition at line 2532 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 2555 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 2554 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 2543 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 2551 of file execnodes.h.

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

◆ hash_metacxt

MemoryContext AggState::hash_metacxt

◆ hash_ngroups_current

◆ hash_ngroups_limit

uint64 AggState::hash_ngroups_limit

Definition at line 2547 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 2558 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 2548 of file execnodes.h.

Referenced by ExecInitAgg(), and show_hashagg_info().

◆ hash_spill_mode

bool AggState::hash_spill_mode

◆ hash_spill_rslot

TupleTableSlot* AggState::hash_spill_rslot

Definition at line 2540 of file execnodes.h.

Referenced by agg_refill_hash_table(), and ExecInitAgg().

◆ hash_spill_wslot

TupleTableSlot* AggState::hash_spill_wslot

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

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

◆ max_colno_needed

int AggState::max_colno_needed

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

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

◆ numphases

int AggState::numphases

Definition at line 2501 of file execnodes.h.

Referenced by agg_retrieve_direct(), and ExecInitAgg().

◆ numtrans

◆ peragg

AggStatePerAgg AggState::peragg

◆ pergroups

AggStatePerGroup* AggState::pergroups

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

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

◆ shared_info

◆ sort_in

Tuplesortstate* AggState::sort_in

Definition at line 2526 of file execnodes.h.

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

◆ sort_out

Tuplesortstate* AggState::sort_out

Definition at line 2527 of file execnodes.h.

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

◆ sort_slot

TupleTableSlot* AggState::sort_slot

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