]> granicus.if.org Git - postgresql/blob - src/include/executor/execdesc.h
OK, folks, here is the pgindent output.
[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.9 1998/09/01 04:35:48 momjian 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
21 /* ----------------
22  *              query descriptor:
23  *      a QueryDesc encapsulates everything that the executor
24  *      needs to execute the query
25  * ---------------------
26  */
27 typedef struct QueryDesc
28 {
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  */