1 /*-------------------------------------------------------------------------
4 * plan and query descriptor accessor macros used by the executor
8 * Portions Copyright (c) 1996-2000, PostgreSQL, Inc
9 * Portions Copyright (c) 1994, Regents of the University of California
11 * $Id: execdesc.h,v 1.13 2000/01/26 05:58:05 momjian Exp $
13 *-------------------------------------------------------------------------
18 #include "nodes/parsenodes.h"
19 #include "nodes/plannodes.h"
20 #include "tcop/dest.h"
24 * a QueryDesc encapsulates everything that the executor
25 * needs to execute the query
26 * ---------------------
28 typedef struct QueryDesc
30 CmdType operation; /* CMD_SELECT, CMD_UPDATE, etc. */
33 CommandDest dest; /* the destination output of the execution */
37 extern QueryDesc *CreateQueryDesc(Query *parsetree, Plan *plantree,
40 #endif /* EXECDESC_H */