PostgreSQL Source Code
git master
|
Go to the source code of this file.
Functions | |
SortState * | ExecInitSort (Sort *node, EState *estate, int eflags) |
void | ExecEndSort (SortState *node) |
void | ExecSortMarkPos (SortState *node) |
void | ExecSortRestrPos (SortState *node) |
void | ExecReScanSort (SortState *node) |
void | ExecSortEstimate (SortState *node, ParallelContext *pcxt) |
void | ExecSortInitializeDSM (SortState *node, ParallelContext *pcxt) |
void | ExecSortInitializeWorker (SortState *node, ParallelWorkerContext *pwcxt) |
void | ExecSortRetrieveInstrumentation (SortState *node) |
void ExecEndSort | ( | SortState * | node | ) |
Definition at line 235 of file nodeSort.c.
References ExecClearTuple(), ExecEndNode(), outerPlanState, ScanState::ps, PlanState::ps_ResultTupleSlot, SO1_printf, SortState::ss, ScanState::ss_ScanTupleSlot, tuplesort_end(), and SortState::tuplesortstate.
Referenced by ExecEndNode().
Definition at line 167 of file nodeSort.c.
References SortState::bounded, EXEC_FLAG_BACKWARD, EXEC_FLAG_MARK, EXEC_FLAG_REWIND, ExecCreateScanSlotFromOuterPlan(), ExecInitNode(), ExecInitResultTupleSlotTL(), PlanState::ExecProcNode, ExecSort(), makeNode, outerPlan, outerPlanState, PlanState::plan, ScanState::ps, PlanState::ps_ProjInfo, SortState::randomAccess, SO1_printf, SortState::sort_Done, SortState::ss, PlanState::state, TTSOpsMinimalTuple, TTSOpsVirtual, and SortState::tuplesortstate.
Referenced by ExecInitNode().
void ExecReScanSort | ( | SortState * | node | ) |
Definition at line 303 of file nodeSort.c.
References SortState::bound, SortState::bound_Done, SortState::bounded, SortState::bounded_Done, PlanState::chgParam, ExecClearTuple(), ExecReScan(), outerPlan, outerPlanState, ScanState::ps, PlanState::ps_ResultTupleSlot, SortState::randomAccess, SortState::sort_Done, SortState::ss, tuplesort_end(), tuplesort_rescan(), and SortState::tuplesortstate.
Referenced by ExecReScan().
void ExecSortEstimate | ( | SortState * | node, |
ParallelContext * | pcxt | ||
) |
Definition at line 357 of file nodeSort.c.
References add_size(), ParallelContext::estimator, PlanState::instrument, mul_size(), ParallelContext::nworkers, offsetof, ScanState::ps, shm_toc_estimate_chunk, shm_toc_estimate_keys, and SortState::ss.
Referenced by ExecParallelEstimate().
void ExecSortInitializeDSM | ( | SortState * | node, |
ParallelContext * | pcxt | ||
) |
Definition at line 378 of file nodeSort.c.
References PlanState::instrument, SharedSortInfo::num_workers, ParallelContext::nworkers, offsetof, PlanState::plan, Plan::plan_node_id, ScanState::ps, SortState::shared_info, shm_toc_allocate(), shm_toc_insert(), SortState::ss, and ParallelContext::toc.
Referenced by ExecParallelInitializeDSM().
void ExecSortInitializeWorker | ( | SortState * | node, |
ParallelWorkerContext * | pwcxt | ||
) |
Definition at line 403 of file nodeSort.c.
References SortState::am_worker, PlanState::plan, Plan::plan_node_id, ScanState::ps, SortState::shared_info, shm_toc_lookup(), SortState::ss, and ParallelWorkerContext::toc.
Referenced by ExecParallelInitializeWorker().
void ExecSortMarkPos | ( | SortState * | node | ) |
Definition at line 270 of file nodeSort.c.
References SortState::sort_Done, tuplesort_markpos(), and SortState::tuplesortstate.
Referenced by ExecMarkPos().
void ExecSortRestrPos | ( | SortState * | node | ) |
Definition at line 288 of file nodeSort.c.
References SortState::sort_Done, tuplesort_restorepos(), and SortState::tuplesortstate.
Referenced by ExecRestrPos().
void ExecSortRetrieveInstrumentation | ( | SortState * | node | ) |
Definition at line 417 of file nodeSort.c.
References SharedSortInfo::num_workers, offsetof, palloc(), and SortState::shared_info.
Referenced by ExecParallelRetrieveInstrumentation().