|
PostgreSQL Source Code git master
|
#include "postgres.h"#include "access/parallel.h"#include "executor/executor.h"#include "executor/nodeCustom.h"#include "miscadmin.h"#include "nodes/execnodes.h"#include "nodes/extensible.h"#include "nodes/plannodes.h"#include "utils/rel.h"
Go to the source code of this file.
Functions | |
| static TupleTableSlot * | ExecCustomScan (PlanState *pstate) |
| CustomScanState * | ExecInitCustomScan (CustomScan *cscan, EState *estate, int eflags) |
| void | ExecEndCustomScan (CustomScanState *node) |
| void | ExecReScanCustomScan (CustomScanState *node) |
| void | ExecCustomMarkPos (CustomScanState *node) |
| void | ExecCustomRestrPos (CustomScanState *node) |
| void | ExecCustomScanEstimate (CustomScanState *node, ParallelContext *pcxt) |
| void | ExecCustomScanInitializeDSM (CustomScanState *node, ParallelContext *pcxt) |
| void | ExecCustomScanReInitializeDSM (CustomScanState *node, ParallelContext *pcxt) |
| void | ExecCustomScanInitializeWorker (CustomScanState *node, ParallelWorkerContext *pwcxt) |
| void | ExecShutdownCustomScan (CustomScanState *node) |
| void ExecCustomMarkPos | ( | CustomScanState * | node | ) |
Definition at line 139 of file nodeCustom.c.
References CustomExecMethods::CustomName, ereport, errcode(), errmsg(), ERROR, CustomExecMethods::MarkPosCustomScan, and CustomScanState::methods.
Referenced by ExecMarkPos().
| void ExecCustomRestrPos | ( | CustomScanState * | node | ) |
Definition at line 150 of file nodeCustom.c.
References CustomExecMethods::CustomName, ereport, errcode(), errmsg(), ERROR, CustomScanState::methods, and CustomExecMethods::RestrPosCustomScan.
Referenced by ExecRestrPos().
|
static |
Definition at line 114 of file nodeCustom.c.
References Assert(), castNode, CHECK_FOR_INTERRUPTS, CustomExecMethods::ExecCustomScan, and CustomScanState::methods.
Referenced by ExecInitCustomScan().
| void ExecCustomScanEstimate | ( | CustomScanState * | node, |
| ParallelContext * | pcxt | ||
| ) |
Definition at line 161 of file nodeCustom.c.
References CustomExecMethods::EstimateDSMCustomScan, ParallelContext::estimator, CustomScanState::methods, CustomScanState::pscan_len, shm_toc_estimate_chunk, and shm_toc_estimate_keys.
Referenced by ExecParallelEstimate().
| void ExecCustomScanInitializeDSM | ( | CustomScanState * | node, |
| ParallelContext * | pcxt | ||
| ) |
Definition at line 174 of file nodeCustom.c.
References CustomExecMethods::InitializeDSMCustomScan, CustomScanState::methods, PlanState::plan, Plan::plan_node_id, ScanState::ps, CustomScanState::pscan_len, shm_toc_allocate(), shm_toc_insert(), CustomScanState::ss, and ParallelContext::toc.
Referenced by ExecParallelInitializeDSM().
| void ExecCustomScanInitializeWorker | ( | CustomScanState * | node, |
| ParallelWorkerContext * | pwcxt | ||
| ) |
Definition at line 205 of file nodeCustom.c.
References CustomExecMethods::InitializeWorkerCustomScan, CustomScanState::methods, PlanState::plan, Plan::plan_node_id, ScanState::ps, shm_toc_lookup(), CustomScanState::ss, and ParallelWorkerContext::toc.
Referenced by ExecParallelInitializeWorker().
| void ExecCustomScanReInitializeDSM | ( | CustomScanState * | node, |
| ParallelContext * | pcxt | ||
| ) |
Definition at line 190 of file nodeCustom.c.
References CustomScanState::methods, PlanState::plan, Plan::plan_node_id, ScanState::ps, CustomExecMethods::ReInitializeDSMCustomScan, shm_toc_lookup(), CustomScanState::ss, and ParallelContext::toc.
Referenced by ExecParallelReInitializeDSM().
| void ExecEndCustomScan | ( | CustomScanState * | node | ) |
Definition at line 125 of file nodeCustom.c.
References Assert(), CustomExecMethods::EndCustomScan, and CustomScanState::methods.
Referenced by ExecEndNode().
| CustomScanState * ExecInitCustomScan | ( | CustomScan * | cscan, |
| EState * | estate, | ||
| int | eflags | ||
| ) |
Definition at line 26 of file nodeCustom.c.
References CustomExecMethods::BeginCustomScan, castNode, CustomScanMethods::CreateCustomScanState, CustomScan::custom_scan_tlist, ExecAssignExprContext(), ExecAssignScanProjectionInfoWithVarno(), ExecCustomScan(), ExecInitQual(), ExecInitResultTupleSlotTL(), ExecInitScanTupleSlot(), ExecOpenScanRelation(), PlanState::ExecProcNode, ExecTypeFromTL(), CustomScanState::flags, CustomScan::flags, INDEX_VAR, CustomScanState::methods, CustomScan::methods, NIL, PlanState::plan, ScanState::ps, PlanState::qual, RelationGetDescr, CustomScan::scan, Scan::scanrelid, CustomScanState::slotOps, CustomScanState::ss, ScanState::ss_currentRelation, PlanState::state, and TTSOpsVirtual.
Referenced by ExecInitNode().
| void ExecReScanCustomScan | ( | CustomScanState * | node | ) |
Definition at line 132 of file nodeCustom.c.
References Assert(), CustomScanState::methods, and CustomExecMethods::ReScanCustomScan.
Referenced by ExecReScan().
| void ExecShutdownCustomScan | ( | CustomScanState * | node | ) |
Definition at line 221 of file nodeCustom.c.
References CustomScanState::methods, and CustomExecMethods::ShutdownCustomScan.
Referenced by ExecShutdownNode_walker().