Skip to content
Snippets Groups Projects
Select Git revision
  • 4240e429d0c2d889d0cda23c618f94e12c13ade7
  • master default
  • benchmark-tools
  • postgres-lambda
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
24 results

parse_relation.c

Blame
  • execMain.c 44.45 KiB
    /*-------------------------------------------------------------------------
     *
     * execMain.c--
     *	  top level executor interface routines
     *
     * INTERFACE ROUTINES
     *	ExecutorStart()
     *	ExecutorRun()
     *	ExecutorEnd()
     *
     *	The old ExecutorMain() has been replaced by ExecutorStart(),
     *	ExecutorRun() and ExecutorEnd()
     *
     *	These three procedures are the external interfaces to the executor.
     *	In each case, the query descriptor and the execution state is required
     *	 as arguments
     *
     *	ExecutorStart() must be called at the beginning of any execution of any
     *	query plan and ExecutorEnd() should always be called at the end of
     *	execution of a plan.
     *
     *	ExecutorRun accepts 'feature' and 'count' arguments that specify whether
     *	the plan is to be executed forwards, backwards, and for how many tuples.
     *
     * Copyright (c) 1994, Regents of the University of California
     *
     *
     * IDENTIFICATION
     *	  $Header: /cvsroot/pgsql/src/backend/executor/execMain.c,v 1.67 1999/01/29 10:15:09 vadim Exp $
     *
     *-------------------------------------------------------------------------
     */
    #include <string.h>
    #include "postgres.h"
    #include "miscadmin.h"
    
    #include "executor/executor.h"
    #include "executor/execdefs.h"
    #include "executor/execdebug.h"
    #include "executor/nodeIndexscan.h"
    #include "utils/builtins.h"
    #include "utils/palloc.h"
    #include "utils/acl.h"
    #include "utils/syscache.h"
    #include "utils/tqual.h"
    #include "parser/parsetree.h"	/* rt_fetch() */
    #include "storage/bufmgr.h"
    #include "storage/lmgr.h"
    #include "storage/smgr.h"
    #include "commands/async.h"
    /* #include "access/localam.h" */
    #include "optimizer/var.h"
    #include "access/heapam.h"
    #include "access/xact.h"
    #include "catalog/heap.h"
    #include "commands/trigger.h"
    
    void ExecCheckPerms(CmdType operation, int resultRelation, List *rangeTable,
    			   Query *parseTree);
    
    
    /* decls for local routines only used within this module */
    static TupleDesc InitPlan(CmdType operation, Query *parseTree,
    		 Plan *plan, EState *estate);
    static void EndPlan(Plan *plan, EState *estate);
    static TupleTableSlot *ExecutePlan(EState *estate, Plan *plan,
    			CmdType operation, int numberTuples, ScanDirection direction,
    			DestReceiver *destfunc);
    static void ExecRetrieve(TupleTableSlot *slot, 
    						 DestReceiver *destfunc,