diff options
Diffstat (limited to 'src/include/executor/executor.h')
-rw-r--r-- | src/include/executor/executor.h | 136 |
1 files changed, 68 insertions, 68 deletions
diff --git a/src/include/executor/executor.h b/src/include/executor/executor.h index efa8dc3f01d..219984f17b8 100644 --- a/src/include/executor/executor.h +++ b/src/include/executor/executor.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: executor.h,v 1.12 1997/09/08 02:36:17 momjian Exp $ + * $Id: executor.h,v 1.13 1997/09/08 21:51:51 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -29,41 +29,41 @@ extern void ExecOpenScanR(Oid relOid, int nkeys, ScanKey skeys, bool isindex, ScanDirection dir, TimeQual timeRange, - Relation * returnRelation, Pointer * returnScanDesc); -extern void ExecCloseR(Plan * node); -extern void ExecReScan(Plan * node, ExprContext * exprCtxt, Plan * parent); -extern HeapScanDesc + Relation *returnRelation, Pointer *returnScanDesc); +extern void ExecCloseR(Plan *node); +extern void ExecReScan(Plan *node, ExprContext *exprCtxt, Plan *parent); +extern HeapScanDesc ExecReScanR(Relation relDesc, HeapScanDesc scanDesc, ScanDirection direction, int nkeys, ScanKey skeys); -extern void ExecMarkPos(Plan * node); -extern void ExecRestrPos(Plan * node); +extern void ExecMarkPos(Plan *node); +extern void ExecRestrPos(Plan *node); extern Relation ExecCreatR(TupleDesc tupType, Oid relationOid); /* * prototypes from functions in execJunk.c */ -extern JunkFilter *ExecInitJunkFilter(List * targetList); -extern bool -ExecGetJunkAttribute(JunkFilter * junkfilter, TupleTableSlot * slot, - char *attrName, Datum * value, bool * isNull); -extern HeapTuple ExecRemoveJunk(JunkFilter * junkfilter, TupleTableSlot * slot); +extern JunkFilter *ExecInitJunkFilter(List *targetList); +extern bool +ExecGetJunkAttribute(JunkFilter *junkfilter, TupleTableSlot *slot, + char *attrName, Datum *value, bool *isNull); +extern HeapTuple ExecRemoveJunk(JunkFilter *junkfilter, TupleTableSlot *slot); /* * prototypes from functions in execMain.c */ -extern TupleDesc ExecutorStart(QueryDesc * queryDesc, EState * estate); -extern TupleTableSlot *ExecutorRun(QueryDesc * queryDesc, EState * estate, int feature, int count); -extern void ExecutorEnd(QueryDesc * queryDesc, EState * estate); +extern TupleDesc ExecutorStart(QueryDesc *queryDesc, EState *estate); +extern TupleTableSlot *ExecutorRun(QueryDesc *queryDesc, EState *estate, int feature, int count); +extern void ExecutorEnd(QueryDesc *queryDesc, EState *estate); extern HeapTuple ExecConstraints(char *caller, Relation rel, HeapTuple tuple); /* * prototypes from functions in execProcnode.c */ -extern bool ExecInitNode(Plan * node, EState * estate, Plan * parent); -extern TupleTableSlot *ExecProcNode(Plan * node, Plan * parent); -extern int ExecCountSlotsNode(Plan * node); -extern void ExecEndNode(Plan * node, Plan * parent); +extern bool ExecInitNode(Plan *node, EState *estate, Plan *parent); +extern TupleTableSlot *ExecProcNode(Plan *node, Plan *parent); +extern int ExecCountSlotsNode(Plan *node); +extern void ExecEndNode(Plan *node, Plan *parent); /* * prototypes from functions in execQual.c @@ -71,28 +71,28 @@ extern void ExecEndNode(Plan * node, Plan * parent); extern bool execConstByVal; extern int execConstLen; -extern Datum -ExecExtractResult(TupleTableSlot * slot, AttrNumber attnum, - bool * isNull); -extern Datum -ExecEvalParam(Param * expression, ExprContext * econtext, - bool * isNull); +extern Datum +ExecExtractResult(TupleTableSlot *slot, AttrNumber attnum, + bool *isNull); +extern Datum +ExecEvalParam(Param *expression, ExprContext *econtext, + bool *isNull); /* stop here */ extern char * -GetAttributeByName(TupleTableSlot * slot, char *attname, - bool * isNull); -extern Datum -ExecEvalExpr(Node * expression, ExprContext * econtext, bool * isNull, - bool * isDone); -extern bool ExecQual(List * qual, ExprContext * econtext); -extern int ExecTargetListLength(List * targetlist); -extern TupleTableSlot *ExecProject(ProjectionInfo * projInfo, bool * isDone); +GetAttributeByName(TupleTableSlot *slot, char *attname, + bool *isNull); +extern Datum +ExecEvalExpr(Node *expression, ExprContext *econtext, bool *isNull, + bool *isDone); +extern bool ExecQual(List *qual, ExprContext *econtext); +extern int ExecTargetListLength(List *targetlist); +extern TupleTableSlot *ExecProject(ProjectionInfo *projInfo, bool *isDone); /* * prototypes from functions in execScan.c */ -extern TupleTableSlot *ExecScan(Scan * node, TupleTableSlot * (*accessMtd) ()); +extern TupleTableSlot *ExecScan(Scan *node, TupleTableSlot *(*accessMtd) ()); /* * prototypes from functions in execTuples.c @@ -102,65 +102,65 @@ extern void ExecDestroyTupleTable(TupleTable table, bool shouldFree); extern TupleTableSlot *ExecAllocTableSlot(TupleTable table); extern TupleTableSlot * ExecStoreTuple(HeapTuple tuple, - TupleTableSlot * slot, + TupleTableSlot *slot, Buffer buffer, bool shouldFree); -extern TupleTableSlot *ExecClearTuple(TupleTableSlot * slot); -extern bool ExecSetSlotPolicy(TupleTableSlot * slot, bool shouldFree); -extern TupleDesc -ExecSetSlotDescriptor(TupleTableSlot * slot, +extern TupleTableSlot *ExecClearTuple(TupleTableSlot *slot); +extern bool ExecSetSlotPolicy(TupleTableSlot *slot, bool shouldFree); +extern TupleDesc +ExecSetSlotDescriptor(TupleTableSlot *slot, TupleDesc tupdesc); -extern void ExecSetSlotDescriptorIsNew(TupleTableSlot * slot, bool isNew); -extern void ExecIncrSlotBufferRefcnt(TupleTableSlot * slot); -extern bool TupIsNull(TupleTableSlot * slot); -extern void ExecInitResultTupleSlot(EState * estate, CommonState * commonstate); +extern void ExecSetSlotDescriptorIsNew(TupleTableSlot *slot, bool isNew); +extern void ExecIncrSlotBufferRefcnt(TupleTableSlot *slot); +extern bool TupIsNull(TupleTableSlot *slot); +extern void ExecInitResultTupleSlot(EState *estate, CommonState *commonstate); extern void -ExecInitScanTupleSlot(EState * estate, - CommonScanState * commonscanstate); -extern void ExecInitMarkedTupleSlot(EState * estate, MergeJoinState * mergestate); -extern void ExecInitOuterTupleSlot(EState * estate, HashJoinState * hashstate); +ExecInitScanTupleSlot(EState *estate, + CommonScanState *commonscanstate); +extern void ExecInitMarkedTupleSlot(EState *estate, MergeJoinState *mergestate); +extern void ExecInitOuterTupleSlot(EState *estate, HashJoinState *hashstate); -extern TupleDesc ExecGetTupType(Plan * node); -extern TupleDesc ExecTypeFromTL(List * targetList); +extern TupleDesc ExecGetTupType(Plan *node); +extern TupleDesc ExecTypeFromTL(List *targetList); /* * prototypes from functions in execTuples.c */ extern void ResetTupleCount(void); extern void -ExecAssignNodeBaseInfo(EState * estate, CommonState * basenode, - Plan * parent); -extern void ExecAssignExprContext(EState * estate, CommonState * commonstate); +ExecAssignNodeBaseInfo(EState *estate, CommonState *basenode, + Plan *parent); +extern void ExecAssignExprContext(EState *estate, CommonState *commonstate); extern void -ExecAssignResultType(CommonState * commonstate, +ExecAssignResultType(CommonState *commonstate, TupleDesc tupDesc); extern void -ExecAssignResultTypeFromOuterPlan(Plan * node, - CommonState * commonstate); -extern void ExecAssignResultTypeFromTL(Plan * node, CommonState * commonstate); -extern TupleDesc ExecGetResultType(CommonState * commonstate); -extern void ExecAssignProjectionInfo(Plan * node, CommonState * commonstate); -extern void ExecFreeProjectionInfo(CommonState * commonstate); -extern TupleDesc ExecGetScanType(CommonScanState * csstate); +ExecAssignResultTypeFromOuterPlan(Plan *node, + CommonState *commonstate); +extern void ExecAssignResultTypeFromTL(Plan *node, CommonState *commonstate); +extern TupleDesc ExecGetResultType(CommonState *commonstate); +extern void ExecAssignProjectionInfo(Plan *node, CommonState *commonstate); +extern void ExecFreeProjectionInfo(CommonState *commonstate); +extern TupleDesc ExecGetScanType(CommonScanState *csstate); extern void -ExecAssignScanType(CommonScanState * csstate, +ExecAssignScanType(CommonScanState *csstate, TupleDesc tupDesc); extern void -ExecAssignScanTypeFromOuterPlan(Plan * node, - CommonScanState * csstate); +ExecAssignScanTypeFromOuterPlan(Plan *node, + CommonScanState *csstate); extern AttributeTupleForm ExecGetTypeInfo(Relation relDesc); extern void ExecOpenIndices(Oid resultRelationOid, - RelationInfo * resultRelationInfo); -extern void ExecCloseIndices(RelationInfo * resultRelationInfo); + RelationInfo *resultRelationInfo); +extern void ExecCloseIndices(RelationInfo *resultRelationInfo); extern void -ExecInsertIndexTuples(TupleTableSlot * slot, ItemPointer tupleid, - EState * estate, bool is_update); +ExecInsertIndexTuples(TupleTableSlot *slot, ItemPointer tupleid, + EState *estate, bool is_update); extern void resetVarAttrLenForCreateTable(TupleDesc tupType); extern void setVarAttrLenForCreateTable(TupleDesc tupType, - List * targetList, List * rangeTable); + List *targetList, List *rangeTable); /* ---------------------------------------------------------------- |