PostgreSQL Source Code
git master
|
#include "postgres.h"
#include "executor/executor.h"
#include "executor/nodeCtescan.h"
#include "miscadmin.h"
Go to the source code of this file.
Functions | |
static TupleTableSlot * | CteScanNext (CteScanState *node) |
static bool | CteScanRecheck (CteScanState *node, TupleTableSlot *slot) |
static TupleTableSlot * | ExecCteScan (PlanState *pstate) |
CteScanState * | ExecInitCteScan (CteScan *node, EState *estate, int eflags) |
void | ExecEndCteScan (CteScanState *node) |
void | ExecReScanCteScan (CteScanState *node) |
|
static |
Definition at line 31 of file nodeCtescan.c.
References CteScanState::cte_table, CteScanState::cteplanstate, CteScanState::eof_cte, EState::es_direction, ExecClearTuple(), ExecCopySlot(), ExecProcNode(), CteScanState::leader, ScanState::ps, CteScanState::readptr, ScanDirectionIsForward, CteScanState::ss, ScanState::ss_ScanTupleSlot, PlanState::state, TupIsNull, tuplestore_advance(), tuplestore_ateof(), tuplestore_gettupleslot(), tuplestore_puttupleslot(), and tuplestore_select_read_pointer().
Referenced by ExecCteScan().
|
static |
Definition at line 145 of file nodeCtescan.c.
Referenced by ExecCteScan().
|
static |
Definition at line 160 of file nodeCtescan.c.
References castNode, CteScanNext(), CteScanRecheck(), ExecScan(), and CteScanState::ss.
Referenced by ExecInitCteScan().
void ExecEndCteScan | ( | CteScanState * | node | ) |
Definition at line 288 of file nodeCtescan.c.
References CteScanState::cte_table, CteScanState::leader, and tuplestore_end().
Referenced by ExecEndNode().
CteScanState* ExecInitCteScan | ( | CteScan * | node, |
EState * | estate, | ||
int | eflags | ||
) |
Definition at line 175 of file nodeCtescan.c.
References Assert, castNode, CteScanState::cte_table, CteScan::cteParam, CteScan::ctePlanId, CteScanState::cteplanstate, DatumGetPointer(), CteScanState::eflags, CteScanState::eof_cte, EState::es_param_exec_vals, EState::es_subplanstates, EXEC_FLAG_MARK, EXEC_FLAG_REWIND, ExecAssignExprContext(), ExecAssignScanProjectionInfo(), ExecCteScan(), ExecGetResultType(), ExecInitQual(), ExecInitResultTypeTL(), ExecInitScanTupleSlot(), ParamExecData::execPlan, PlanState::ExecProcNode, innerPlan, ParamExecData::isnull, CteScanState::leader, list_nth(), makeNode, outerPlan, PlanState::plan, PointerGetDatum(), ScanState::ps, PlanState::qual, CteScanState::readptr, CteScan::scan, CteScanState::ss, PlanState::state, TTSOpsMinimalTuple, tuplestore_alloc_read_pointer(), tuplestore_begin_heap(), tuplestore_rescan(), tuplestore_select_read_pointer(), tuplestore_set_eflags(), ParamExecData::value, and work_mem.
Referenced by ExecInitNode().
void ExecReScanCteScan | ( | CteScanState * | node | ) |
Definition at line 307 of file nodeCtescan.c.
References PlanState::chgParam, CteScanState::cte_table, CteScanState::cteplanstate, CteScanState::eof_cte, ExecClearTuple(), ExecScanReScan(), CteScanState::leader, ScanState::ps, PlanState::ps_ResultTupleSlot, CteScanState::readptr, CteScanState::ss, tuplestore_clear(), tuplestore_rescan(), and tuplestore_select_read_pointer().
Referenced by ExecReScan().