]> granicus.if.org Git - postgresql/blob - src/include/executor/execdesc.h
Add:
[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  * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
9  * Portions Copyright (c) 1994, Regents of the University of California
10  *
11  * $Id: execdesc.h,v 1.13 2000/01/26 05:58:05 momjian Exp $
12  *
13  *-------------------------------------------------------------------------
14  */
15 #ifndef EXECDESC_H
16 #define EXECDESC_H
17
18 #include "nodes/parsenodes.h"
19 #include "nodes/plannodes.h"
20 #include "tcop/dest.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 {
30         CmdType         operation;              /* CMD_SELECT, CMD_UPDATE, etc. */
31         Query      *parsetree;
32         Plan       *plantree;
33         CommandDest dest;                       /* the destination output of the execution */
34 } QueryDesc;
35
36 /* in pquery.c */
37 extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
38                                 CommandDest dest);
39
40 #endif   /* EXECDESC_H  */