PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
IncrementalSortState * | ExecInitIncrementalSort (IncrementalSort *node, EState *estate, int eflags) |
void | ExecEndIncrementalSort (IncrementalSortState *node) |
void | ExecReScanIncrementalSort (IncrementalSortState *node) |
void | ExecIncrementalSortEstimate (IncrementalSortState *node, ParallelContext *pcxt) |
void | ExecIncrementalSortInitializeDSM (IncrementalSortState *node, ParallelContext *pcxt) |
void | ExecIncrementalSortInitializeWorker (IncrementalSortState *node, ParallelWorkerContext *pwcxt) |
void | ExecIncrementalSortRetrieveInstrumentation (IncrementalSortState *node) |
void ExecEndIncrementalSort | ( | IncrementalSortState * | node | ) |
Definition at line 1077 of file nodeIncrementalSort.c.
References ExecDropSingleTupleTableSlot(), ExecEndNode(), IncrementalSortState::fullsort_state, IncrementalSortState::group_pivot, outerPlanState, IncrementalSortState::prefixsort_state, SO_printf, IncrementalSortState::transfer_tuple, and tuplesort_end().
Referenced by ExecEndNode().
void ExecIncrementalSortEstimate | ( | IncrementalSortState * | node, |
ParallelContext * | pcxt | ||
) |
Definition at line 1173 of file nodeIncrementalSort.c.
References add_size(), ParallelContext::estimator, PlanState::instrument, mul_size(), ParallelContext::nworkers, ScanState::ps, shm_toc_estimate_chunk, shm_toc_estimate_keys, size, and IncrementalSortState::ss.
Referenced by ExecParallelEstimate().
void ExecIncrementalSortInitializeDSM | ( | IncrementalSortState * | node, |
ParallelContext * | pcxt | ||
) |
Definition at line 1194 of file nodeIncrementalSort.c.
References PlanState::instrument, SharedIncrementalSortInfo::num_workers, ParallelContext::nworkers, PlanState::plan, Plan::plan_node_id, ScanState::ps, IncrementalSortState::shared_info, shm_toc_allocate(), shm_toc_insert(), size, IncrementalSortState::ss, and ParallelContext::toc.
Referenced by ExecParallelInitializeDSM().
void ExecIncrementalSortInitializeWorker | ( | IncrementalSortState * | node, |
ParallelWorkerContext * | pwcxt | ||
) |
Definition at line 1219 of file nodeIncrementalSort.c.
References IncrementalSortState::am_worker, PlanState::plan, Plan::plan_node_id, ScanState::ps, IncrementalSortState::shared_info, shm_toc_lookup(), IncrementalSortState::ss, and ParallelWorkerContext::toc.
Referenced by ExecParallelInitializeWorker().
void ExecIncrementalSortRetrieveInstrumentation | ( | IncrementalSortState * | node | ) |
Definition at line 1233 of file nodeIncrementalSort.c.
References SharedIncrementalSortInfo::num_workers, palloc(), IncrementalSortState::shared_info, and size.
Referenced by ExecParallelRetrieveInstrumentation().
IncrementalSortState* ExecInitIncrementalSort | ( | IncrementalSort * | node, |
EState * | estate, | ||
int | eflags | ||
) |
Definition at line 976 of file nodeIncrementalSort.c.
References Assert, IncrementalSortState::bound_Done, IncrementalSortState::bounded, EXEC_FLAG_BACKWARD, EXEC_FLAG_MARK, ExecCreateScanSlotFromOuterPlan(), ExecGetResultType(), ExecIncrementalSort(), ExecInitNode(), ExecInitResultTupleSlotTL(), PlanState::ExecProcNode, IncrementalSortState::execution_status, IncrementalSortState::fullsort_state, IncrementalSortInfo::fullsortGroupInfo, IncrementalSortState::group_pivot, IncrementalSortGroupInfo::groupCount, IncrementalSortState::incsort_info, INCSORT_LOADFULLSORT, PlanState::instrument, makeNode, MakeSingleTupleTableSlot(), IncrementalSortGroupInfo::maxDiskSpaceUsed, IncrementalSortGroupInfo::maxMemorySpaceUsed, IncrementalSortState::n_fullsort_remaining, IncrementalSortState::outerNodeDone, outerPlan, outerPlanState, PlanState::plan, IncrementalSortState::prefixsort_state, IncrementalSortInfo::prefixsortGroupInfo, IncrementalSortState::presorted_keys, ScanState::ps, PlanState::ps_ProjInfo, SO_printf, IncrementalSortGroupInfo::sortMethods, IncrementalSortState::ss, PlanState::state, IncrementalSortGroupInfo::totalDiskSpaceUsed, IncrementalSortGroupInfo::totalMemorySpaceUsed, IncrementalSortState::transfer_tuple, and TTSOpsMinimalTuple.
Referenced by ExecInitNode().
void ExecReScanIncrementalSort | ( | IncrementalSortState * | node | ) |
Definition at line 1107 of file nodeIncrementalSort.c.
References IncrementalSortState::bound_Done, ExecClearTuple(), ExecReScan(), IncrementalSortState::execution_status, IncrementalSortState::fullsort_state, IncrementalSortState::group_pivot, INCSORT_LOADFULLSORT, IncrementalSortState::n_fullsort_remaining, IncrementalSortState::outerNodeDone, outerPlan, outerPlanState, IncrementalSortState::prefixsort_state, ScanState::ps, PlanState::ps_ResultTupleSlot, IncrementalSortState::ss, IncrementalSortState::transfer_tuple, and tuplesort_reset().
Referenced by ExecReScan().