]> granicus.if.org Git - postgresql/blob - src/include/executor/execdesc.h
Make sure all the cleaned up includes are commited
[postgresql] / src / include / executor / execdesc.h
1 /*-------------------------------------------------------------------------
2  *
3  * execdesc.h--
4  *    plan and query descriptor accessor macros used by the executor
5  *    and related modules.
6  *
7  *
8  * Copyright (c) 1994, Regents of the University of California
9  *
10  * $Id: execdesc.h,v 1.2 1996/11/04 12:11:40 scrappy Exp $
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef EXECDESC_H
15 #define EXECDESC_H
16
17 #include <tcop/dest.h>
18 #include <nodes/plannodes.h>
19 #include <nodes/parsenodes.h>
20 #include <nodes/nodes.h>
21
22 /* ----------------
23  *      query descriptor:
24  *  a QueryDesc encapsulates everything that the executor
25  *  needs to execute the query
26  * ---------------------
27  */
28 typedef struct QueryDesc {
29     CmdType             operation; /* CMD_SELECT, CMD_UPDATE, etc. */
30     Query               *parsetree; 
31     Plan                *plantree;
32     CommandDest         dest;  /* the destination output of the execution */
33 } QueryDesc;
34
35 /* in pquery.c */
36 extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
37                                   CommandDest dest);
38
39 #endif /*  EXECDESC_H  */